Serve CSS & JS through Optimole

The Serve CSS & JS through Optimole feature is a powerful tool that optimizes your website's CSS and JS files, along with any images contained within them. Once enabled, Optimole meticulously processes these files and images, enhancing their performance, and then delivers them efficiently via a Content Delivery Network (CDN). This process significantly improves your website's loading speed, providing visitors with a seamless browsing experience.

🔌 Enable the Feature

To enable this feature, navigate to WP  Dashboard > Optimole.


Open the Settings tab.


Expand the Advanced accordion and open the Compression panel.


Use the toggle to  enable Serve CSS & JS through Optimole feature.

🚀 User Site and Image Impact

Optimole's optimization process is meticulous, ensuring not just CSS and JS files but also embedded images experience significant enhancements. These embedded images are carefully optimized to preserve their original quality while enabling faster loading times.

When a visitor accesses your website, these optimized embedded images are seamlessly delivered via the CDN. This means your visuals remain clear yet load rapidly, enhancing user experience without compromising the quality of your content. 

Before enabling the feature

After enabling the feature

🔄 Benefits and Trade-offs


  • Speed - reduces webpage loading times, improving user satisfaction.
  • Reduced server load - by delivering optimized CSS and JS files through its CDN, Optimole reduces the load on your web server.
  • Image optimization - if CSS and JS files contain embedded images, Optimole optimizes these images as well.


  • Dependency on Optimole - relying on Optimole’s service means your website's performance is linked to its servers.
  • Cache dependency - efficient use of Optimole depends on proper caching.

🧩 Use Cases

The feature can be very advantageous for multiple use cases, such as:

  • Interactive maps - websites incorporating interactive maps, such as travel blogs or real estate platforms, often use marker images.
  • E-learning platforms - online courses often feature interactive elements, including quizzes and educational games, which rely on CSS and JS files.
  • Event websites - websites for events, conferences, or festivals frequently use interactive features like event calendars and location maps.
  • Business directories - directories with maps and marker images, such as restaurant finders or job portals, rely on optimized CSS and JS files.

  • Network-based Optimizations - doc
  • Exclusions - doc

🗂Useful Resources

You may find useful these guides:

Still looking for an answer? Contact us!

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.