- This topic has 11 replies, 2 voices, and was last updated 3 years, 12 months ago by
Tom.
-
AuthorPosts
-
June 7, 2019 at 11:38 am #922879
epickenyan
Hi.
1. Is the schema inside GP enough for type ‘articles?
2. After changing to SVG in the theme (alpha 3), loading the site on mobile flashes the off-canvas menu on the screen and the black icons (search and menu I guess), and on chrome, the menu seems to flash (break and organize itself back) in milliseconds) and also noticed similar behaviour in brave browser. Not sure if you can see that from your end.June 7, 2019 at 3:33 pm #922999Tom
Lead DeveloperLead DeveloperHi there,
1. I don’t believe so. You’d need to set up an Organization name/image etc.. using a JSON+LD solution (plugin, Yoast SEO etc..)
2. I’m not experiencing this. Can you try clearing your browser cache on your phone?
Let me know π
June 7, 2019 at 5:35 pm #923034epickenyan
1. Do you think this plugin covers everything? And do I need to disable the theme schema? (I switched from Yoast to SEO Framework but the latter does not have Article schema in the free version so I unticked the other schema options)
2. I did some further digging and found out when I choose SVG in the customiser (updated theme to beta version), that is when the issue occurs. I took a quick screenshot with my phone to demonstrate what I mean which you can see here. I am on a Litespeed server optimizing with Litespeed cache plugin and the option for ‘load CSS asynchronously” is what is causing those SVG links in the menu (off canvas) to ‘jump’ as in the screenshot. It shows in my connection for like a second but I am sure in much slower connections it could be a bother.June 8, 2019 at 9:28 am #923483Tom
Lead DeveloperLead Developer1. That plugin should do the trick. You can disable the GP schema like this:
add_filter( 'generate_schema_type', '__return_false' );
2. So if you turn off “load CSS asynchronously” the issue goes away?
June 8, 2019 at 10:51 am #923542epickenyan
1. Okay, thanks.
2. Yes, it does. Seems there is a conflict somewhere that I cannot figure out (I found using google lighthouse on incognito mode also shows the menu retraction. Maybe try that and tell me if you see it, especially with chrome).June 8, 2019 at 7:28 pm #923710Tom
Lead DeveloperLead Developer2. But that only happens with this CSS option checked, yes? It sounds like the CSS is taking too long to load, so the images are showing up first with no styling.
I’ll check to see if this is something we can prevent and will get back to you π
June 9, 2019 at 4:16 am #923890epickenyan
Yes, it happens only with this option checked. I tried unchecking all optimization settings and enabling them one by one and only this option returned the error. I will wait for your feedback on the same.
June 12, 2019 at 9:24 am #927238Tom
Lead DeveloperLead DeveloperDoes the plugin give you an option to add critical CSS that needs to be left alone?
If so, you may need to do add this:
.gp-icon svg { height: 1em; width: 1em; top: .125em; position: relative; fill: currentColor; } .icon-menu-bars svg:nth-child(2), .toggled .icon-menu-bars svg:nth-child(1), .icon-search svg:nth-child(2), .close-search .icon-search svg:nth-child(1) { display: none; }
June 13, 2019 at 1:50 pm #928861epickenyan
Hi Tom, this worked. Just a slight new issue. Now for a moment when the menu loads, the x icon shows next to the search icon and hamburger icon, both on the right side as shown here.
June 13, 2019 at 2:56 pm #928919Tom
Lead DeveloperLead DeveloperI’ve just updated the CSS above π
June 13, 2019 at 3:48 pm #928940epickenyan
Thanks a lot, Tom! It worked. Consider this resolved.
June 14, 2019 at 8:28 am #929713Tom
Lead DeveloperLead DeveloperGlad I could help π
-
AuthorPosts
- You must be logged in to reply to this topic.