This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A class-based approach to bring in Facbook Connect asynchronously on every | |
* frontend page load. Also handles side-loading channelURL when using | |
* Facebook's FB.init() method. | |
* | |
* This fits nicely in any functions.php, or can be dropped in to a standalone | |
* php file to use as a plugin. | |
* | |
* @link http://developers.facebook.com/docs/reference/javascript/FB.init/ | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Works in Chrome, Firefox, MSIE, Opera and Safari. | |
*/ | |
function onDOMContentLoaded( event ) { | |
if( event ) { | |
document.removeEventListener( event.type, onDOMContentLoaded, false ); | |
} | |
document.onreadystatechange = null; | |
// For testing purposes. | |
alert( "DOM Content Loaded" ); |
NewerOlder