News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

What's the fastest Jquery source?

Started by PrimalPrime, June 13, 2023, 01:43:41 AM

Previous topic - Next topic

PrimalPrime

Google CDN? JQuery CDN? Microsoft CDN? Local/custom url (get my host to install it?)

Thank you!

Kindred

well, local is generally "fastest" in terms of serving up the content...
however, there are downsides to it as well.... There are reasons for each of the choices.

YOu need to be more specific about what you are actually trying to accomplish instead of asking a super-broad question with many answers.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Antechinus

The advantage of using one of the CDN's (usually Google or JQuery) is that a lot of users will already have the file cached in their browser. This can save on fetch/load time. The CDN's generally work best for visitors who are new to your site, because it's almost certain they will have visited another site which made their browser cache jQuery already.

If someone doesn't already have the file cached (for whatever reason) then there's no advantage (for them at least) in the CDN's. Since most users won't clear their cache often it may only need to be cached once, which isn't a big deal in the scheme of things, so if you want to use local that's fine. There's no need for your host to install anything. The relevant files come as part of SMF.



Advertisement: