Support only during business hours : Monday to friday, from 8:30 am – 5:30 pm CEST

Due to the decrease in our staff due to vacations, our response time may be longer.

Be sure we're doing our best to manage your topic as soon as possible.

Missing Source Map files create unnecessary server load

Find Answers and Get Support Forums Cera – Intranet & Community Theme Fine Tuning Performance Optimization Missing Source Map files create unnecessary server load

This topic is resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • Sam
    Participant
    • 18 Topics
    • 41 Posts
    @sjregan

    Throughout cera theme and grimlock plugins the CSS and JS files contain references to source maps. (eg: /*# sourceMappingURL=customizer-preview.css.map */)

    However the source maps are missing. This means that the WordPress 404 handler is running for each missing source map, creating unnecessary server load.

    On a basic home page, there are at least 7 missing files, this means 7 additional PHP processes and countless database calls for requests that are never seen by the user.

    Additionally, if browsers limit the number of parallel requests then legitimate requests are delayed waiting for the pointless 404 responses.

    Please either include the files, or strip the references.

    Themosaurusrex
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 2048 Posts
    @themosaurusrex

    Hi @sjregan,

    Thank you for your feedback.

    We’re aware of this issue and we’re planning on removing this references from our files. This will be fixed in the coming updates.

    However, these warnings should not cause any issue, unless you have your browser debugging tools activated. A quick test using Charles Web Proxy (https://www.charlesproxy.com/) shows that source maps are only loaded if developer tools are opened. If you load a page without dev tools opened, there is no http request for source maps.

    For more about this, please read also the following post:
    https://blog.praveen.science/avoiding-http-404-for-map-files-when-using-minified-css/

    Best,

    Sam
    Participant
    • 18 Topics
    • 41 Posts
    @sjregan

    @themosaurusrex Thank you for the detailed reply.

    As I spend my time developing plugins and extending your theme I always have my developer tools open, so my underpowered laptop and I will be thankful when this release happens 🙂

    For anyone else who finds this thread before the release, I used this to reduce the server load in my nginx hosts file:

    location ~ \.map$ {return 200;}

    Themosaurusrex
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 2048 Posts
    @themosaurusrex

    Awesome @sjregan ! 🙂
    Thank you for sharing this with rest of us ! #SharingIsCaring

    Themosaurusrex
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 2048 Posts
    @themosaurusrex

    @sjregan The latest Cera updates should have fixed this issue. We’re also actively working removing those from Grimlock plugins. This issue should have totally disappeared with the coming updates.

    I’ll close this topic.

    Best,

Roboraptor 🦖
Themosaurus Topic Closer

Hi there,

This topic has been inactive for a while now so we will be closing it to keep the forum tidy. Don't hesitate to create a new topic if you still need help and we'll be glad to help you!

Best regards,
The Themosaurus team.

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Missing Source Map files create unnecessary server load’ is closed to new replies.

Troubleshooting Demo Imports

You're trying to setup your theme but you're experiencing errors when importing the demo content? Or you've just followed the setup guide but your website doesn't look exactly like our demo? These are common issues for which you can find easy and quick fixes.

Happy With our Support So Far?

Feel free to review our theme on Themeforest! It helps us making our products more known to new potential customers, which allow us more time to improve the quality and develop new features. #SharingIsCaring ❤️

Discover MatchPress

Skip • Like • Super-Like

Add powerful matching features like Member likes, skips, super likes, conditional private messaging and much more.

Setup Your Cera or Gwangi powered Community Website and Turn it into an iOS and Android App

15% discount for Cera users

To unleash the full power of your Cera or Gwangi theme, we have partnered with the Zipline team. Your community website can now be fully setup and turned into your very own custom app for iOS and Android.

Whether you've newly acquired the theme or already got your site up and running, Zipline got you covered. And we got you an incredible discount.

Holiday, Weather & Festive effects
to pimp your WordPress Site