Remove inline JS from HTML

Got an idea for enhancing SpiderBasic? New command(s) you'd like to see?
the.weavster
Posts: 229
Joined: Sat Mar 01, 2014 3:02 pm

Remove inline JS from HTML

Post 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.