Open mavas84 opened 4 years ago
No easy fix for that due to
<link rel=stylesheet href="a.css">
<style>some inline styles modifying a.css content</style>
so content cant be moved.
Similar effect can happen even if theme pushes a lot of inline styles, so more clean fix is to increase priority of hander adding what should be done in plugin adding those 's.
Just a note that this same thing which effects Twitter and Facebook also affects Bing's search crawler, meaning all pages from affected sites appear in Bing with errors such as no title tag, no description, same canonical link, etc. It effectively neuters a site in Bing, Facebook, Twitter (and those are just the three we've found thus far... I'm sure there are more parsers which limit their maximum size-parsed-per-page).
Taking @maxicus's comment into consideration, maybe the layout of the
section needs to be considered here, putting all the non-style tags well-ahead of all this other stuff?@DaveHamilton which plugin do you use for adding metas? Also, do you have
@maxicus We have Yoast putting our metas in, and all our meta tags (and
We were talking about this and had an idea: what if we put a tag in to tell W3TC exactly where to inject it? If the tag doesn't exist, then you do what you're already doing by default, but this allows the user to have control if/where they need it.
So, for example, something like:
<title>
<meta blah blah>
<meta blah blah blah>
<meta more blah blah>
<!--W3TC Insert CSS here-->
<style>some inline style</style>
etc...
@DaveHamilton fresh WordPress installation with Yoast have title, description and other metas above the first
When the option Performance > Minify > Eliminate render-blocking CSS by moving it to the HTTP body is enabled, neither Facebook nor Twitter will parse far enough to see the meta tags for images Reference topic: https://wordpress.org/support/topic/w3tc-eliminate-render-blocking-css-causes-facebook-to-miss-ogimage-tag/