docsy icon indicating copy to clipboard operation
docsy copied to clipboard

Replace jquery.js URL to a CDN location

Open LinuxSuRen opened this issue 4 years ago • 3 comments

LinuxSuRen avatar Jan 27 '21 05:01 LinuxSuRen

What's the advantage of using jsdelivr over code.jquery.com as our CDN?

LisaFC avatar Jan 28 '21 13:01 LisaFC

From this doc, it's a pretty good CDN. https://github.com/jsdelivr/jsdelivr#why-jsdelivr

LinuxSuRen avatar Jan 28 '21 13:01 LinuxSuRen

code.jquery.com is stackpath.. which is one of the CDNs jsdelivr uses.... i've never had an issue as far as I know so this is a bit of a solution looking for a problem imo.

It brings up a good question though around what js we actually want to host as part of the repo, vs pulling in via cdn (especially as these resources are far less cacheable these days)

We have a number of libraries now that we pull in via CDN, and a number that are either in the repo, or a git submodule

Not sure i have a good answer fwiw; just interested :-)

gwatts avatar Mar 29 '21 21:03 gwatts