[OpenLayers-Users] OL code JS (ECMA?) standarts compliance and code packing

Deli Soetiawan crushfire2004 at gmail.com
Mon Oct 6 22:25:04 EDT 2008


ussually i use http://www.bananascript.com for JS compression, it compress
the minified (JSMin) OL api that size was ~480kb into ~170kb file, it really
effective and eficien since it use real compression, too bad compressed OL
api can't works (dunno why?!), the author says in FAQ that the code should
work with or without any semicolons. i tried pack prototype and spry it
works flawlessly but OL didn't :(.

some from its FAQ (http://www.bananascript.com/index.php?faq):


> How is the compression done?
> Besides the common removal of comments, tabs and spaces as seen in many
> other tools, this tool also performs "real" compression on the files. The
> idea is simple, replace long recurring byte sequences by shorter ones. 
> 
> What about compatibility?
> If your code ran before compression, it should run after. If not, let me
> know because it might be because of a bug. This compression tool is
> designed for and tested on webpages with the iso-8859-1 charset. Other
> charsets have not been tested and might or might not work.
> 
> Do I have to use semicolons?
> No. Although use of semicolon is often recommended, it is not required.
> Users should not be forced to write their code in a certain style to be
> able to use this tool. If their code worked before compression, then it
> must work after, semicolons or not.

soon i will contact the author for this
-- 
View this message in context: http://www.nabble.com/OL-code-JS-%28ECMA-%29-standarts-compliance-and-code-packing-tp19778306p19849946.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list