Page 1 of 1

Remove inline JS from HTML

Posted: Sat Jan 02, 2016 2:22 pm
by the.weavster
Chrome doesn't like inline JS when you're creating content pages in extensions, would it be possible to have the following two lines put into external JS files instead of being inline?

Code: Select all

var spider = {}; spider.nbModules = 0; spider.nbLoadedModules = 0;
//
var dojoConfig = { locale: 'en',  async: 1 }; 
I have done this manually and then just pointed the script tags in the HTML to the JS files and it all seems to work OK but it would be nicer if I didn't have to do any tweaking.