Autoptimize Insiline Defer Css prevents Yoast Seo Facebook tag from working
-
From this thread
After lot of tries ive proved that option under Autoptimize
Inline and Defer CSS? Inline “above the fold CSS” while loading the main autoptimized CSS only after page load. Check the FAQ before activating this option!
Makes Yoast social tab option
Facebook Insights and Admins
To not work.
Apparently yoast adds the facebook tag after all the inline css of autoptimize, and facebook refuses to read so much code. It does not read until the closing header tag. So if you deactivate de inline css the the yoast facebook tag is almost at the beggining of the header and it works, but if you enable the inline css above the fold in autoptimize yoast tag ends after the inline css and thats a lot of code so facebook stops reading and shows an error as if the tag werent there, even though it is actually there but after all that css code.
So, ive disabled it for the moment but i tell you to know and maybe say if you will be somehow moving all the inline css to the very end of the header so no tag endes trapped bellow all that code, or maybe you see any other solution on your side im missing.
Greetings.
- The topic ‘Autoptimize Insiline Defer Css prevents Yoast Seo Facebook tag from working’ is closed to new replies.