When we activate your TagDiv Speed Booster plugin, there’s a momentary flash of black color for the top menu and for all buttons, before they adjust to blue as specified by our options choices. It seems like the stylesheet for user selected color preferences is getting loaded too late, if we had to guess.
Is there a recommended fix for this? Would very much like to use the plugin, but currently we have it disabled to avoid that problem.
Thanks in advance!
Yep. The only fix is to not use theme panel “over rides” for default colors, and make those changes directly to the style.css file.
Otherwise what is basically happening is
a) main CSS loads
b) CSS over-rides load
as you might expect in many situations due to the complexity of certain pages; especially with complex home page, and complex mega-menu — there is a couple msecs delay in there.
Also avoid using child theme on top of that since all child themes are basically redirects from one theme to another — which Google doesn’t recommend — but WordPress has made this their standard practice. Best to just edit the main theme, since with major theme updates, the child theme needs changes too and defeats purposes of using child theme to avoid not having to re-apply changes.
Much like WooCommerce — changes are done to functions.php — and one has to reapply them each time there is update.
Anyway — that’s been my experience. 🙂
Hi,
Unfortunately is usually happens because of the speed booster plugin which move the css and js at the bottom of the page structure so that the page will load faster, this is why the theme color appears first then changes, because of the cascading property of css. A solution is to make your changes in style.css like already Christopher suggested.
Thanks!