7 ms·
JS to load other JS never made sense to me.
by rorrr 16y ago
JS to load other JS never made sense to me.
- noodle 16y agojust thought i'd note (since you're new-ish) that you're getting downvoted because you stated an opinion without backing it up with any information. why doesn't it make sense to you? it makes sense to others.
- weixiyen 16y agoHave you ever worked in large scale applications with little to no browser refresh?
- Pewpewarrows 16y agoFirst off, you shouldn't be down-voted for your opinion. If you agree or the comment adds to a discussion, up-vote. If you disagree, do nothing. If the comment is off-topic, asinine, or detracts from the discussion, only then down-vote. Come on HN, you should know better. There's a lot of reasons to load Javascript from Javascript. One of the main ones that crop up is when you're building large single-page web applications that involve a lot of files that may or may not be dependent on one another. This allows you to start executing some of your page-specific Javascript as soon as the libraries it depends on become available, before the rest of your bulky resources finish loading.