Hot answers tagged

1

Here's a small utility to attach properly to the SharePoint lifecycle. You use it like this: window.LifeCycleHelper.AttachToLoad(function(){ alert('Hello World'); }); Utility: //use an IIFE to create a scope and dont dirty the global scope (function (_) { // use strict to ensure we dont code stupid 'use strict'; var initHandlers = []; ...



Only top voted, non community-wiki answers of a minimum length are eligible