Mantys Core
Guides

Performance guides for WordPress

Clear, practical answers to the exact problems that keep your Core Web Vitals down.

JavaScript · 5 min

Why does my burger menu only open on the second click?

The one-sentence summary: if you turned on a JavaScript delay (loading scripts on the first click or after a timer), the very first tap on the burger wakes up the script loading, it does not open the menu. The menu only responds to the second tap. The fix: isolate the menu script and its dependencies out of the delay, or better, give it a vanilla menu with no dependency.

Core Web Vitals · 6 min

Which optimizations can you turn on without any risk of breaking your site?

The one-sentence summary: there is a whole family of optimizations that cannot break your site, because they reduce file weight or give the browser hints, without ever changing what runs. Start with those: they win you the essentials, with your eyes closed.

CSS · 6 min

Why did my critical CSS break my menu / overlay (it shows up open on load)?

The one-sentence summary: critical-CSS generators only keep the styles for what is visible at the top of the page on load. Your elements that are hidden by default and opened on click (mobile menu, search overlay, modal, drawer) are judged useless and removed. The result: on load, they show up open, broken, unstyled.

Images · 5 min

Why does PageSpeed Insights still say “Properly size images” when I have a srcset?

The one-sentence summary: srcset offers the browser a list of sizes, but it is the sizes attribute that tells it which one to pick. If sizes is missing, wrong, or ignored, the browser downloads the largest image in the list, and PageSpeed flags it, srcset or not.

My AccountGet License →