- This topic has 7 replies, 2 voices, and was last updated 2 months, 1 week ago by David.
November 14, 2021 at 9:28 am #2004107Greg
I’m experiencing an odd issue with a background gradient, which doesn’t appear fully on mobile on first load, but when you scroll/move the page around it fully loads. The container background also has a background image set to 0.75 opacity.
It’s like the colour gradient doesn’t fully load at first – any ideas on what’s causing this and if there’s a way to fix it?
My site is at https://www.mantra.co.uk/
Thanks for any help
GregNovember 14, 2021 at 9:43 am #2004112DavidStaffCustomer Support
i am seeing this:
The highlighted CSS is in WP Rocket Critical CSS
Not sure what thats doing there – but i check the site with WP Rocket disabled, then that CSS is not loaded and the problem goes away.November 14, 2021 at 10:14 am #2004124Greg
Thanks for the quick reply, it was some old rogue CSS I’d setup in Simple CSS, removing that has sorted it 🙂
GregNovember 15, 2021 at 4:33 am #2004650DavidStaffCustomer SupportNovember 17, 2021 at 2:56 am #2007454Greg
Sorry to re-open this topic, I’m noticing a strange issue with the background gradient where it doesn’t fully load until the cursor is moved on the screen – https://i.imgur.com/krMQGTy.mp4
Does anyone know a way around this? I’ve tried removing the background image and just having the gradient, but it does the same thing unfortunately.
Thanks for any help.
GregNovember 17, 2021 at 4:20 am #2007568DavidStaffCustomer Support
On initial load i still see the same CSS i pointed out above:
On hover i can see this class
spai_has_jsbeing added to the main HTML element. Which looks like the result of a ‘delay loading until interaction’ script – at which point the above CSS is removed, and problem solved.
So its whatever WP Rocket is doing thats causing a problem.November 17, 2021 at 8:14 am #2008088Greg
Thanks for your time, David – the hover class gave me something to investigate. Which I think was an odd settings issue between WP Rocket and Shortpixel AI, reinstalled/setup and all seems to be good now 🙂
GregNovember 18, 2021 at 2:15 am #2008953
- You must be logged in to reply to this topic.