Support Forums for LiveMesh Themes & Plugins › Forums › Appdev Theme Support › Mobile content stops displaying when I inline and defer CSS
- This topic has 12 replies, 3 voices, and was last updated 6 years, 11 months ago by Raghavendra.
-
AuthorPosts
-
April 27, 2017 at 12:51 pm #26523ZetlandParticipant
I recently installed the Autoptimize plugin and signed up with CriticalCSS to generate the CSS for the above-the-fold content. This improved my PageSpeed score and worked really well for the desktop version – but for the mobile version it stopped the content below the header from displaying.
When I asked the CriticalCSS author about it, he couldn’t find why the mobile content below the header wouldn’t display, but sent me this:
“I don’t see any difference for mobile, however your site hides all your main content in the html, and only shows in when JavaScript loads, due to this css rule:
#title-area .inner, #custom-title-area .inner, #content, .sidebar-right-nav, .sidebar-left-nav {
opacity: 0;
}You would be much better removing it and showing your users your site content as soon as possible (on the first render).”
Do you know how I can do this? I can’t find that exact code in my style.css file (there’s a similar one without “opacity: 0;”). Do you also know why deferring my CSS might be hiding the mobile content too?
Thanks
vocularapp.com
April 28, 2017 at 2:04 pm #26536RaghavendraModeratorIf you disable smooth load and animations on the page(general tab of theme options), the above code mentioned should not trigger.
Also, pls disable rev slider and check if that resolves the issue. I see on some pages have produced console errors and this could be the root cause of this issue.
April 28, 2017 at 2:21 pm #26537ZetlandParticipantThanks for your response. I’ve just done both of those things, although weirdly now when I ‘inline and defer CSS’ none of the content shows for any version – desktop or mobile. Any idea why this might be happening…? Sorry for such a difficult one…
May 1, 2017 at 12:00 pm #26550RaghavendraModeratorHard to debug this. I see now that your site is back. Need to simulate this to know if I can help – a temp login and instructions to simulate this issue would help. Thanks.
May 2, 2017 at 2:18 pm #26555ZetlandParticipant[quote quote=26550]Hard to debug this. I see now that your site is back. Need to simulate this to know if I can help – a temp login and instructions to simulate this issue would help. Thanks.
[/quote]
Sure, could I email you a temp login?
May 4, 2017 at 4:31 pm #26574ZetlandParticipantI mean, could you send me an email address that I could use to send you a temp password?
May 5, 2017 at 5:40 am #26578VeenaModeratorYou can share the temp login here itself as a private msg . You should tick the box “set as private reply” while replying.
May 5, 2017 at 1:41 pm #26581ZetlandParticipantThis reply has been marked as private.May 6, 2017 at 3:42 pm #26585VeenaModeratorWe ll get back to you shortly on this.
May 9, 2017 at 5:55 pm #26609ZetlandParticipantThanks. Any luck yet?
May 10, 2017 at 4:57 pm #26613RaghavendraModeratorThis reply has been marked as private.May 10, 2017 at 7:33 pm #26620ZetlandParticipantWell, I appreciate the effort anyway. I’m only doing this to improve my PageSpeed score and, therefore, my Google ranking. And inlining and deferring my CSS did improve the score quite a lot. Thanks for your help.
May 11, 2017 at 5:05 pm #26625RaghavendraModeratorThat is a worthy goal to pursue – hope you will be able to meet the same without these extensive tweaks. Wish you the best with your site.
-
AuthorPosts
- The forum ‘Appdev Theme Support’ is closed to new topics and replies.