check_warnings()

This function will return an array of warnings/errors and other logs, but is only available to admins and developers. Read More »

update_sw_js()

This function looks for variables set between and in the service worker JavaScript file (default: sw.js) Read More »

styles_http2_server_push_header()

The Service Worker Nebula option must be enabled, and the service worker file must be in the proper location (default: root directory) for this function to send the HTTP2 Server Push headers. This function requests a server push of all enqueued local CSS and JS files. Read More »

sw_location()

The default filename for the Nebula service worker is and typical Nebula installation instructs for this file to be moved to the root directory. However, all of this can be overridden by using the action (See below for full code snippet). If you intend on using an alternate filename or location, you must override this Read More »

ga_log_fatal_errors()

Google Analytics does not have a default exception report. You'll need to make one or find one in the Gallery. I recommend Ron Whitman's Exception Report. This function can't catch all errors, but it offers a glimpse into many that will prevent visitors from using the website. JavaScript errors are also logged in the same Read More »

remote_get()

This is basically wp_remote_get() with a caching aspect. If a resource is unavailable, Nebula will not remotely request from that hostname for 10 minutes to maintain quick load times. Never call this function without following it up with a check for on the response! Refer to the examples on this page. Read More »