the same on GTMetrix, a couple of javascripts (which helps for a form submission) loads when the page loads
wanted to load only at the scroll upon form (and only, if not already loaded), so What I think, this will help reducing page load time
let myScript = document.createElement("script");
myScript.setAttribute("src", "https://www.example.com/foo.js");
document.body.appendChild(myScript);
Can I do this, this way ? (calling this snippet, when users lands on form section of page)
Thanks
yes
https://medium.com/@nikjohn/speed-up-google-maps-and-everything-else-with-async-defer-7b9814efb2b#.v77i9d7lx
tried understanding this What can be better ?
Interesting bit seems to be that modules are always deferred or async
how does that help in running a script on scrolling down
They should probably just defer if it's one script
Your literally asked this question before
What
🤨
Обсуждают сегодня