LoadJS
Languages and libraries
javascript loader library
SHOW HN2016
25points
14comments
#1,074of 2,264 in 2016
Top 48%of 2016 by points
How HN took it
CuriousMostly questions and neutral comments
1 positive, 3 neutral or asking, 0 mixed, 1 critical, out of 5 comments about the project. Thread score 0.00.
Docs: 1 for, 0 againstIdea: 0 for, 1 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Tiny size and clever byte-shaving
From 3 comments
Curious as to how 84 bytes were shaved since the previous posting. https://news.ycombinator.com/item?id=9941182
brudgers on HNI just shaved off another 3 bytes so LoadJS is now 503 bytes (minified + gzipped). HN - If you see a way to get below 500 bytes please let me know!…
andres on HNUsing ES5 features? Because arrow functions would make it smaller. Also using an if/else instead of continue saves 4 bytes. Using arrow functions shaves off another 2 bytes.…
barsonme on HN
Would like CDNjs distribution
From 1 comment
Nice work would love to see it delivered via CDNjs
maxpert on HN
Objections
Sequential loading may not work since dynamically added scripts default to async
From 1 comment
How does dysel do sequential loading? Dynamically loaded script tags default to async=true so I think this code loads/executes scripts asynchronously:…
andres on HN
Adds bloat; native async script tags may suffice
From 2 comments
For what purpose? Just stop layering bloat.
fbdjfhhcbd on HN1. If you need four hundred dependant scripts to load a page you're doing something wrong. 2. Why can't you just use <script async src="/js/script.js"></script> and be done with…
romanovcode on HN
Requests
Distribute via CDNjs
From 1 comment
Nice work would love to see it delivered via CDNjs
maxpert on HN
Questions
How the library shaved bytes since the previous version
From 1 comment
Curious as to how 84 bytes were shaved since the previous posting. https://news.ycombinator.com/item?id=9941182
brudgers on HN
Can it go below 500 bytes
From 1 comment
I just shaved off another 3 bytes so LoadJS is now 503 bytes (minified + gzipped). HN - If you see a way to get below 500 bytes please let me know!…
andres on HN
Alternatives named
LABjs
From 1 comment
For wider browser support I've always relied on LABjs. It's been around for ages and has to be among the most stable JS libraries out there despite having to deal with all those…
teknologist on HN
dysel
From 1 comment
check out https://github.com/sun2rise/dysel too
sunrising on HN