4 ms·
For a somewhat-related blast from the past, see Crockford's ADsafe: http://www.adsafe.org/ http://www.adsafe.org/
by ghostwords 15y ago
For a somewhat-related blast from the past, see Crockford's ADsafe:
http://www.adsafe.org/ http://www.adsafe.org/
- bcx 15y agoThat 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.
- mjpizz 15y agoHaha, 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?