News for hackers. Stuff that matters.
Re:The Controversial State of JavaScript Tooling by dpkrjb on Tuesday February 02, 2016 @01:12PM (#11021182)
I believe the main problem with googles cdn is it can prevent Chinese users from visiting your site
Re:The Controversial State of JavaScript Tooling by vosper on Tuesday February 02, 2016 @01:21PM (#11021249)
I would imagine it's China that's preventing Chinese users from visiting your site, not Google?
Re:The Controversial State of JavaScript Tooling by ybx on Tuesday February 02, 2016 @01:25PM (#11021294)
Yes, but the end result is the same
Re:The Controversial State of JavaScript Tooling by alextgordon on Tuesday February 02, 2016 @01:32PM (#11021347)
I guess, but if you go to the trouble of localising your website into Chinese, then loading a self-hosted version of the library for Chinese users doesn't seem like much extra work.
Re:The Controversial State of JavaScript Tooling by everfree on Tuesday February 02, 2016 @02:00PM (#11021569)
This can be solved through the use of a local fallback if the request to the Google CDN returns 404.
Re:The Controversial State of JavaScript Tooling by robocat on Tuesday February 02, 2016 @04:02PM (#11022565)
Needs 1 or more of:

Handling out-of-order js file loading

Duplicate loading prevention

A way to deal with a file that is timing out (holding up page load)

Ideally using async property for script tags

AFAIK most CDN versions of popular libs don't support what you need, so you might as well load locally...