5 ms·
Could you make it a tiny bit smaller by aliasing `window` and `document` and `localStorage` to remove the duplicated calls? `var w=window;var d=document;var l=l
by latchkey 8y ago
Could you make it a tiny bit smaller by aliasing `window` and `document` and `localStorage` to remove the duplicated calls? `var w=window;var d=document;var l=localStorage;`
Interstingly, copying/pasting the code into https://www.minifier.org/ https://www.minifier.org/ gains 69b of savings, but https://jscompress.com/ https://jscompress.com/ shows an error: `Invalid regular expression: /+/: Nothing to repeat (line: 3, col: 48)`
- moviuro 8y agoWouldn't gzip encoding (apache/nginx/whatever is used today) compress that anyway?
- s_y_n_t_a_x 8y agohttps://closure-compiler.appspot.com/ https://closure-compiler.appspot.com/ shaves off 9% w/ no errors