Похожие чаты

Hi, I have a webpage, in which performance is priority checked

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

13 ответов

7 просмотров

yes

Darvesh 🍀
screenshot

Source, Link ?

Isaac .
Source, Link ?

https://medium.com/@nikjohn/speed-up-google-maps-and-everything-else-with-async-defer-7b9814efb2b#.v77i9d7lx

Meera-Patel Автор вопроса
Darvesh 🍀
screenshot

tried understanding this What can be better ?

Darvesh 🍀
screenshot

Interesting bit seems to be that modules are always deferred or async

Darvesh 🍀
??

how does that help in running a script on scrolling down

Your literally asked this question before

What

🤨

Похожие вопросы

Обсуждают сегодня

For managing user-generated content rights in gaming? 🤯🚀
Brian
37
Do we have a Chinese community here?
迪迦
20
Hello! This is Tayla from StealthEX crypto exchange. BCH is listed on our platform. Who can I talk to regarding marketing collaboration?
Tayla
13
@Aiwan что такое база образца?
Alexey
27
Hello, Ergo Investor here. Had a few questions for the leadership of the project, from what I’ve seen @kushti_ru , @Armeanio @dadreboi In one sentence, what is your vision f...
A
16
Не многие знают, а кто знает, тот уже успел забыть, что в далёком 2004 году эта игра произвела настоящий фурор, настолько революционной была технология, применяемая для её соз...
ICCID
4
Why binance delisting the token?
🅰🅽🅳🆁🅴🆆
14
Hi is Atomic wallet safe to exchange btc to xmr?
Regex
20
коллеги, добрый вечер! А никто не знает как модальная форма может себя закрыть? Ну допустим модальная форма определила, что смысла ей работать нет и хочет вернуть modalResult...
Михаил
83
Короче я тут узнал полный пиздец Что кучу постов которые я создавал через posted Спустя время не могу редактировать и менять Мол телега возвращае ошибку Это реально так ...
inc.
13
Карта сайта