Post Display Loader
From KallestadWiki
Contents |
Overview
The Post Display Loader is a javascript file that loads any javascript components that are not required for page display AFTER the page is already displayed.
The Load File Array
The loadfile array is an array of javascript source documents that can be populated anywhere in the page prior to the post-display-loader.js file is referenced. Once the post-display-loader.js file is referenced, script elements are added to the document via document.write. (DOM Additions don't necessarily always load the associated script file for some reason).
The init routine
The init routine is a quick piece of code that looks for a kdfinit function. If a kdfinit function is found, it is executed. If it is not found, the init routine will recycle itself every 400 miliseconds.
The kdfinit function should be the LAST function placed in the LAST file loaded. However, because of http pipelining, you can't be absolutely sure that the kdfinit function truly has access to all of it's dependencies. You should verify that functions and data elements exist prior to accessing them, and in the event they are not available, stop and recursively call kdfinit until they are.
Kallestad Development Framework Topics
- KDF Home
- Project Overview
- Technical Information
- Licensing
