Page 1 of 1

Making a surrogate script

Posted: Sun Jun 02, 2013 2:24 am
by access2godzilla
I want to make surrogates for each major release of jquery. How do I make them?

Any help is appreciated.

Re: Making a surrogate script

Posted: Mon Jun 10, 2013 3:48 am
by Thrawn
Er...you mean a surrogate to make a site work when it depends on JQuery, but JQuery is blocked?

In a nutshell: no way.

JQuery is a large (and very useful) JavaScript library. Pages don't just depend on it if they're badly designed, like Google Analytics; they often use it to perform most of their important functions. A surrogate for it would have to be about as big as the original, and the page still wouldn't behave properly, because it expects JQuery to do meaningful work, which a surrogate would not.

I guess you could download a specific version of JQuery, review it to ensure that it's safe, and copy the whole thing into a surrogate...if surrogates are allowed to be that big...but for myself, I'd be happy to just allow it. I really doubt that JQuery is going to attack anyone.