GoKunming Forums

Tech probs in China

redjon777 (560 posts) • 0

I was hoping somebody on this forum might have some experience with this issue although I appreciate it's not a question for most lol.

Creating a mobile site here in China has come with one small problem for me and it comes down to what JQuery src to use. Usually in the west I could use the Google or Microsoft libary but both either don't work or are slow.

I've found this src but just wondered if there is a better choice (speed/stability) as have no idea what's best (just found this link by searching).

upcdn.b0.upaiyun.com/libs/jquery/jquery-1.9.1.min.js

Just a question with a bit of hope lol

JanJal (1244 posts) • 0

Can't you just download the JS and put it in same place where the rest of your website is?

JanJal (1244 posts) • 0

If you include JS from random website, you have absolutely no guarantee over its content. One day it will just start redirecting users to some porn site.

bluppfisk (398 posts) • 0

Why the hell would you load JQuery from a CDN? They change the framework, they break your site.

Better just load it locally and update it after testing.

Sounds like webdesign 101 to me though.

redjon777 (560 posts) • 0

OK I'll take that on board...but wasn't looking for random site, more a big name (baidu etc)

I just thought the bonus of doing it this way was that if a user came to your site and had already been to a site using the same library it wouldn't need to be reloaded as cached on device, equaling faster load times.

Maybe I'm wrong lol.

bluppfisk (398 posts) • 0

it's only a few tens of kB, why would you bother. A tiny decrease in load times isn't worth your independence. Run it locally.

redjon777 (560 posts) • 0

Yeah I've gone with that option now. I think it's something that can be more applicable in the West when everyone is using Google so the src becomes more useful and reliable.

Related forum threads

Login to post