lazyLoadHTML()

For elements, you can use the function (or ). For elements, you can use the function (or ). For all other HTML elements, use the . For background images, add the class to the element. Warning: The HTML (, , etc.) methods support non-JavaScript environments, but the  method requires JavaScript to work. To trigger the Read More »

crmFormRealTime()

"Use Companion Script" and "Real-Time Form Identification" options must be enabled for this to work in Nebula Options (using the Companion plugin). Use the same input classes as such as or . Read More »

getYoutubeTitle()

This checks if the undocumented function is available from the Youtube API. Either way it tries to return the most applicable title available. The fallback stack is Youtube title, iframe title attribute, or video ID. Read More »

getYoutubeID()

This checks if the undocumented function is available from the Youtube API. Either way it tries to return the most applicable ID available. The fallback stack is Youtube ID, Debug ID, ?v parameter from the video URL or the iframe src, ID attribute of the iframe element itself. Read More »

networkAvailable()

This function will add a body class of "offline" when the network is unavailable (and remove it when the network connection returns). It is also called automatically when the network availability changes using the JavaScript events and . Read More »

addToCache()

This is a convenient way to use the Cache API because it checks for invalid URLs to prevent them from attempting to be added to the cache. It also manages the cache name automatically to match the Service Worker JavaScript. Deprecated in favor of Workbox. Read More »

workbox()

To install the Nebula Service Worker, find the sw.js file in the Nebula Child resources directory and move it to the root directory. Then, enable Service Worker in Nebula Options. If you need to override the name and/or location of the file, override the function (documentation here). When using an SSL, Nebula sets a Content Read More »

updateFormFlow()

This function concatenates the new field/event to the existing string and then sets a custom dimension (if used). As the user moves through the form, the data is sent to Google Analytics scoped to their session. Abandonment can be deciphered when the form flow does not end with a . This function is already built Read More »