Похожие чаты

Inject how? If you want to link a JavaScript file

to your webpage, then using a script tag

10 ответов

27 просмотров

and above request is loading this code snippet https://js.monkcommerce.app/mr.js

Edwing123- Автор вопроса
Adi
and above request is loading this code snippet htt...

<script src="https://js.monkcommerce.app/mr.js"></script>

Edwing123
<script src="https://js.monkcommerce.app/mr.js"></...

I know how it will work I am asking where to generate that url? should I host it somewhere?

Edwing123- Автор вопроса
Adi
I know how it will work I am asking where to gener...

Whenever the browser parses your HTML page, and sees this script tag, It'll see if it has a src attribute, and if there's one: I'll do a request to that "URL". if everything goes fine (the contents at the URL were successfully retrieved), then the browser executes the JavaScript

Edwing123- Автор вопроса
Edwing123
Whenever the browser parses your HTML page, and se...

This is a very simplified explanation, the browser is doing other things, but at a higher level, that's what's happening

Edwing123
This is a very simplified explanation, the browser...

but where is this hosted https://js.monkcommerce.app/mr.js ??? on any server?

Edwing123- Автор вопроса
Adi
but where is this hosted https://js.monkcommerce.a...

No, it's in some other server on the internet

how can I generate one for my self? I have some JS code but want to host it on server and then use it on another website how can I do that?

Edwing123- Автор вопроса
Adi
how can I generate one for my self? I have some JS...

Put the Javascript file in the same place as your HTML pages, or even better, put it inside a directory called js, then you'll end up with something like this: - index.html - js/ - app.js Finally add a script tag and give it a src attribute pointing to app.js

Adi
how can I generate one for my self? I have some JS...

If you are making a browser library you can just put it in npm

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта