Will Fris's WordPress Weblog











{20101017}   protocal relative uri

i just came across protocol-relative uri , an example:

instead of `directly` linking to a file in google’s cdn( content distribution network)

http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js

it is possible to link to it in a protocol relative way like so:

//ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js

thanks to Ken Redler, answering a question on stackoverflow.

Advertisements


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

et cetera
%d bloggers like this: