LightningJS: safe, fast, and asynchronous third-party Javascript
1–10 of 11 posts
Re: LightningJS: safe, fast, and asynchronous third-party Javascript
#2Re: LightningJS: safe, fast, and asynchronous third-party Javascript
#3Re: LightningJS: safe, fast, and asynchronous third-party Javascript
#4For a somewhat-related blast from the past, see Crockford's ADsafe: http://www.adsafe.org/
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.
Re: LightningJS: safe, fast, and asynchronous third-party Javascript
#5For a somewhat-related blast from the past, see Crockford's ADsafe: http://www.adsafe.org/
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 Javascript
#6Re: LightningJS: safe, fast, and asynchronous third-party Javascript
#7Did you guys look at caja? http://code.google.com/p/google-caja/
That said, some kind of Caja integration could be a pretty nice addition to LightningJS.
Re: LightningJS: safe, fast, and asynchronous third-party Javascript
#8Re: LightningJS: safe, fast, and asynchronous third-party Javascript
#9I see you're creating an iframe and then loading the javascript script tag into the it. I assume this is how you are providing encapsulation of a unique window object per script. However, what about scripts that depend on access to the real window object?
Re: LightningJS: safe, fast, and asynchronous third-party Javascript
#10"The short answer is that the third-party provider must make small modifications to take advantage of LightningJS. This is done by adding the bootstrap Javascript and ensuring that the code uses window.parent for manipulation of the original document."
That's kinda a big asterisks to add. That said, deferring JS safely is really hard. It's not a bad thing for more people to be working on.