Meta

Under the Hood: The JavaScript SDK – Truly Asynchronous Loading

Dec 8, 2012Stoyan Stefanov
Under the Hood: The JavaScript SDK – Truly Asynchronous Loading
SummaryAI, from the source post

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.

More from the Facebook Engineering Blog trail