throttle()
Very similar to debounce but where debounce happens only once at the end (or the beginning), throttle happens multiple times but limited to a set amount of time in between. Remember: there is no guarantee that an event will trigger at the end! If the action being throttled stops half-way into the cooldown, it will Read More »
temporaryClass()
During the active period, a class is added to the element. This can be used for additional styling or animation. Read More »
crmQueryParameters()
"Use Companion Script" and "Real-Time Form Identification" options must be enabled for this to work in Nebula Options (using the Companion plugin). This function looks for any query string that begins with and converts to spaces. Note: This function already captures parameters. Read More »
prefetch()
This function will not prefetch resources for users on 2G connections or if the "Save Data" option is enabled. Read More »
postMessage()
This function is essentially an alias for , but it also checks if Service Worker is supported and if there is currently a controller, so it is safe to use anywhere. Remember: Using shift+reload bypasses the service worker so the window will not be controlled! This prevents messages from being posted! Read More »
nebula_sw_message
This is useful for syncing data/information between tabs without needing localstorage. Like closing a notification in one tab closes it in all tabs, or incrementing a counter on all tabs (like an ecommerce cart). Note: the message is not sent to the same tab/window (client) that triggered it. This event will trigger anytime the service Read More »