Uncompressed Javascript Issue (Chrome)

Various discussions related to Adblock Plus development

Uncompressed Javascript Issue (Chrome)

Postby Adblocker_dude » Thu Apr 24, 2014 1:59 pm

I am experiencing an extremely serious issue: it seems that the javascript code in the Google Chrome extension is uncompressed.

I don't know but maybe compressing will have a performance boost. Considering content scripts are parsed and compiled each time a page loads, maybe it will have a good effect?

I have had good experiences with this: https://code.google.com/p/closure-compiler/

Re: Uncompressed Javascript Issue (Chrome)

Postby lewisje » Wed May 28, 2014 10:11 pm

The entire extension is compressed: A CRX file is, at heart, a ZIP file.

It's okay for the Javascript itself to not be minified, because once the extension is installed, its own code doesn't need to be sent across the network, the main reason you'd minify in the first place; whitespace doesn't noticeably slow down the Javascript engine.
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Return to Adblock Plus development

Who is online

Users browsing this forum: No registered users and 3 guests