Uncompressed Javascript Issue (Chrome)

Various discussions related to Adblock Plus development
Post Reply
Adblocker_dude

Uncompressed Javascript Issue (Chrome)

Post by Adblocker_dude »

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/
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Re: Uncompressed Javascript Issue (Chrome)

Post by lewisje »

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