Re:Show HN: LoadJS – A tiny async loader for modern browsers
by brudgers on Wednesday May 18, 2016 @08:47AM
(#11721473)
Curious as to how 84 bytes were shaved since the previous posting. https://news.ycombinator.com/item?id=9941182
[ Parent
| on HN ]
Re:Show HN: LoadJS – A tiny async loader for modern browsers
by andres on Wednesday May 18, 2016 @10:39AM
(#11722279)
Here are some of the changes:
* Replaced for-loops with while-loops [1]
* Removed un-necessary code in the script loading function [2][3]
* Removed setTimeout wrapper [4][5]
[1] https://github.com/muicss/loadjs/blob/master/src/loadjs.js#L...[2] https://github.com/muicss/loadjs/blob/master/src/loadjs.js#L...
[3] https://github.com/muicss/loadjs/blob/8d380e1f6c2af431b08088...
[4] https://github.com/muicss/loadjs/blob/master/src/loadjs.js#L...
[5] https://github.com/muicss/loadjs/blob/8d380e1f6c2af431b08088...