So unless I’m wrong, I see no reason to not preload everything at the top of the page.
Side story: when doing this I wanted to give my JSON file a hash in the name so I could cache it for forever. I broke my own rule and went straight to npm like a sucker. I faffed around for a while before coming to learn that the
crypto library built right there into Node does the trick without too much fuss. It’s so little effort it’s barely worth going to create the gist…
Your users who are running Chrome and Edge and Firefox are good people. Is it fair that you ship 30 KB of polyfills to them? No, it is not.
... read the whole story at ow.ly.