Facebook Engineering Blog
Under the Hood: The JavaScript SDK – Truly Asynchronous Loading

Under the Hood: The JavaScript SDK – Truly Asynchronous Loading

12/8/2012 · Stoyan Stefanov

What this post added

Introduced and implemented the FIF (Friendly iFrames) technique for the Facebook JavaScript SDK to achieve truly asynchronous loading. This technique involves loading the SDK within an iframe and triggering its `onload` event to avoid blocking the parent page's `window.onload` event. The post also details how to adapt existing JavaScript code to work within this iframe context by passing the parent `window` object and explains the integration with the `inDapIF` global variable for SDK compatibility.

Read the original post ↗