918

LESSWRONG
LW

917
Personal Blog

10

[META] ajax.googleapis.com

by Pavitra
20th Jan 2012
1 min read
3

10

Personal Blog

10

[META] ajax.googleapis.com
16wmorgan
9saturn
2Pavitra
New Comment
3 comments, sorted by
top scoring
Click to highlight new comments since: Today at 5:14 PM
[-]wmorgan14y160

LW uses that domain to serve jQuery and Prototype. This is a recommended practice. The voting and posting code both rely on these libraries.

It sounds like what we want is failover: "if the user can't get jQuery from Google, then give it to them from LessWrong." Here is how to do it.

CDN failover is a best practice in general because it keeps the site working if Google ever goes down.

Reply
[-]saturn14y90

If you use Firefox, you may be interested in this.

Reply
[-]Pavitra14y20

This seems to work quite well, thank you!

Reply
Moderation Log
More from Pavitra
View more
Curated and popular this week
3Comments

Apparently, by not unblocking scripts for "ajax.googleapis.com", I am unable to vote on LW. I generally dislike enabling scripting for domains that are used in many places -- unblocking Google APIs would unblock it everywhere, not just here -- so the result is that I am no longer voting. I suspect that I am not alone in this.

(Apparently I can't post without enabling it either. Looks like I'll have make an exception and do the script-on-script-off dance after all. Whee.)