Self Hosting Optimole JS
To host the Optimole JS on your own server, please follow the below steps:
1. Download these two files locally
2. Create the folder js-lib/v2/latest under wp-content/uploads and copy these two js files there.
3. We have a constant that you can use to define a new domain - "OPTML_JS_CDN" so you need to add the following code inside the wp-config.php file:
define( 'OPTML_JS_CDN', 'mydomain.com/wp-content/uploads' );
Note: Please don’t forget to change the mydomain.com to your own domain URL (without HTTP) and there should be no slash after the uploads.