Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: Sharing JS-Code on perlmonks.org

by Corion (Patriarch)
on May 19, 2009 at 10:02 UTC ( [id://764880]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Sharing JS-Code on perlmonks.org
in thread Sharing JS-Code on perlmonks.org

I consider embedding JS from a third party source a risk because you don't control said third party - especially anybody who steals the login of said third party can then execute code as you on your machine under the security context of perlmonks.org, potentially wiping all your nodes or worse.

If you don't want the extra request to "slow down" your browser, you can try making the request to a different domain than the "main" Perlmonks domain you're using. Alternatively, you can of course put the Javascript onto a different machine that serves static files and hence might be faster.

I like jQuery because it encapsulates XmlHttpRequest into something that works with less pain than me having to dive into the incompatibilities between browsers and potentially having to write a poll loop. Also, I like the way jQuery allows DOM manipulation, hence I don't write my own Javascript for that anymore but use a library.

Replies are listed 'Best First'.
Re^4: Sharing JS-Code on perlmonks.org
by LanX (Saint) on May 19, 2009 at 10:11 UTC
    OK hijacking the account may be easier than manipulating sourceforge...

    Well, JQuery needs gzipped about 19kb, so it's by itself a candidate for an embedded external JS...

    But I see your point.

    Cheers Rolf

Re^4: Sharing JS-Code on perlmonks.org
by Anonymous Monk on Nov 26, 2010 at 10:33 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://764880]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-25 22:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found