lazy_iframe()

This is a convenient alias of lazy_load(). Note: this function does not need to use echo as it prints immediately. This uses JavaScript to load iframes after the page has finished loading. Any iframes above the fold will be loaded immediately and any below the fold will wait for the user to scroll. These iframes Read More »

lazy_load()

Note: this function does not need to use echo as it prints immediately. This uses JavaScript to load HTML after the page has finished loading. Any element above the fold will be loaded immediately and any below the fold will wait for the user to scroll. This HTML is loaded in tags so if JavaScript Read More »

timer()

Timings are stored in and categories are separated into a array. Timings will automatically appear for developers, but the query string must be used for non-developers (or logged-out users). Server Timing API Timings are sent via the HTTP header and can be viewed in Chrome DevTools under Network by clicking the page resource and choosing Read More »

move_jquery_to_footer()

This function wouldn't be called directly, but becomes important when squeezing every millisecond out of performance. The Nebula Option for jQuery allows for it to be moved to the footer. Doing so will cause an error for any embedded tags in page templates that are placed before the footer. When this happens, Nebula will output Read More »

lazy_img()

This is a convenient alias of lazy_load(). Note: this function does not need to use echo as it prints immediately. This uses JavaScript to load images after the page has finished loading. Any images above the fold will be loaded immediately and any below the fold will wait for the user to scroll. These images Read More »