Closed gmetais closed 9 years ago
AWESOME!
I probably won't until the day i'll package it for debian :)
Corrected
uglifyjs lazyload.js -c -m --mangle-props --reserve-domprops > lazyload.min.js
gives a lazyload.min.js of 3819 bytes with latest version.
Mangle-props is unsafe but usable if you know what you're doing.
gives a lazyload.min.js of 3819 bytes with latest version.
So is this better than closure?
3819 - 3788 = 31 bytes... since i don't have a working web page under my fingers with lazyload.min.js that i can test, i don't know if this version works. The command-line to get this level of compression is given above.
Closure compiler complains a little during the build.
This empty loop is the reason:
But it works!