Bind JavaScript tag code to execute once all the asynchronous Ensighten Tags and code is downloaded to the browser.
Wrapping custom Tag code in the bindPageSpecificCompletion is very useful if you are relying on other Tags or Tag code that are also asynchronous. This is because asynchronous files can be downloaded in any order so your other tag code might not be downloaded yet. An additional work-around is to use Dependencies.
Parameters
@param1 {function}
:The function to execute upon the DOM Loaded event
Examples
Bootstrapper.bindPageSpecificCompletion(function(){
Bootstrapper.ensEvent.trigger('All Ensighten Tag code downloaded');
});
Bootstrapper.bindPageSpecificCompletion(function(){
s.pageName = Bootstrapper.data.resolve('Manage.Page.PageName');
s.t(); });
Comments
0 comments
Please sign in to leave a comment.