Simon Willison’s Weblog

Subscribe
Atom feed for sandie

1 item tagged “sandie”

2010

premasagar’s sandie. “Sandie is a simple method for loading external JavaScript files into a page without affecting the global scope, to avoid collisions between conflicting scripts”—works by loading the script in an invisible iframe (hence a new global scope) and then passing a reference to a callback function in the parent page.

# 6th May 2010, 8:37 pm / iframes, javascript, sandboxing, recovered, premasagar-rose, sandie