News for hackers. Stuff that matters.
Re:LightningJS: safe, fast, and asynchronous third-party Jav... by ghostwords on Tuesday October 25, 2011 @03:02PM (#3155386)
For a somewhat-related blast from the past, see Crockford's ADsafe:

http://www.adsafe.org/

Re:LightningJS: safe, fast, and asynchronous third-party Jav... by mjpizz on Tuesday October 25, 2011 @03:51PM (#3155587)
Haha, yea I remember that post. Good stuff. LightningJS is really more focused on being "safe" as in "no library conflicts", rather than sandboxing the code itself. In general, end users are copy/pasting embed code directly, so there wouldn't really be a guarantee that the third-party wrapped their resulting code in ADSafe :)

Definitely would be interesting to perhaps include some concepts from ADSafe into LightningJS though - maybe in the bootstrap component?

Re:LightningJS: safe, fast, and asynchronous third-party Jav... by bcx on Tuesday October 25, 2011 @03:19PM (#3155455)
That looks pretty interesting. I love the concept, I guess it just didn't really get the buy in that it needed.

Matt's loader is less focused on making javascript safe to embed from the security standpoint, and is more focused on ensuring that a 3rd part javascript file does not slow down your page.