Page 1 of 1

Script tags src.

Posted: Sun Feb 04, 2007 12:53 am
by JellyFish
Does the script tags src attribute allow you to use sources from other severs other then your own?

Posted: Sun Feb 04, 2007 1:11 am
by feyd
Tried it?

Posted: Sun Feb 04, 2007 1:15 am
by garry27
yes, they do.

Posted: Sun Feb 04, 2007 1:27 am
by JellyFish
Cause ever time I try using:

Code: Select all

<script src="http://www.jquery.com/src/jquery-latest.pack.js"></script>
It doesn't appear to work.

Posted: Sun Feb 04, 2007 11:10 am
by superdezign
They probably block leeching, considering they're an easy target.

Posted: Sun Feb 04, 2007 11:38 am
by feyd
They also provide a content type of application/x-javascript..

Posted: Mon Feb 05, 2007 3:52 pm
by JellyFish
feyd wrote:They also provide a content type of application/x-javascript..
Isn't that the header I'd want? Or is it "text/javscript" only? And how do you block content leaching?

Posted: Mon Feb 05, 2007 4:29 pm
by feyd
While application/x-javascript is valid, I believe typical is text/javascript.

As for blocking leeching, I don't.