B
B
BanterFace2017-10-29 13:15:21
JavaScript
BanterFace, 2017-10-29 13:15:21

jquery smart loading?

There is cdn of google and yandex, each of them has jquery. Is it possible to determine from which cdn the jquery file is already loaded into the cache, and use exactly this file on the page?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2017-10-29
@zkelo

Why so much "smart"? Choose one CDN and download files from it.

K
Kovalsky, 2017-10-29
@lazalu68

If you are not interested in IE and Safari, then you can use ServiceWorker and caches for this . See how the ServiceWorker works in the UpUp sources .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question