Yes, but this is a problem, not a beauty. I’ll try to explain it.
The data crawlers like in Facebook, Twitter, etc, only retrieve the first portion of a page, so if metatags are very far from the beggining of the head section, they fail (some have different limits to retrieve and wait).
In other hand, when you say that your plugin respect the order, you are forgiving that before the replacements, all stuff that was there were CSS file references, that is, a shorter strings with less bytes. So, when a CSS file link is replaced with inline contents, the amount of bytes into the HTML file is bigger, and that’s why the OpenGraph scrappers fails having the same order into the head section.
The solution is very easy: put an option in your plugin (a checkbox, to make it optional) to move all the CSS, JS and inline definitions to bottom. That way the OpenGraph metas and other main metatags will remain at the very top, allowing bots and scrappers to work better.
I hope that now you could understand the idea. That’s why after using this plugin, bots and scrappers that was working before are stopping to do the same after that.
-
This reply was modified 2 years, 8 months ago by
fidoboy.
-
This reply was modified 2 years, 8 months ago by
fidoboy.
-
This reply was modified 2 years, 8 months ago by
fidoboy.