How To Load All Plugin Assets From Local Server

Molongui » Help » How To » How To Load All Plugin Assets From Local Server

Molongui plugins may use popular third party libraries to take care of certain tasks. Example of such libraries are Select2 and Semantic UI.

They are loaded only where needed. And, for your convenience, we load them from a content delivery network (CDN) —a distributed group of servers which work together to provide fast delivery of Internet content.

Loading files from a CDN helps you to improve your website load times. Nonetheless, you might want to serve all the files required by your site from your own server. If so, you can add the code below to your site, either into the functions.php file of your child theme or using a plugin like Code Snippets.

add_filter( 'molongui/assets/load_remote', '__return_false' );

Adding the code above to your site will prevent the plugin to load required assets from a remote CDN, forcing them to be loaded from your own server instead.

Updated on January 21, 2022

Did not find a solution? We are here to help you succeed.
Open a support ticket