Adds a unique identifier to Google Fonts
-
Hi guys,
I’m the developer of OMGF and a client just ran into a compatibility issue with your plugin, so I thought I’d notify you of my findings.
You’re adding unique identifiers to the
id
attribute, which is used by plugins, like OMGF and Autoptimize’s Critical CSS addon, to identify stylesheets and check if they need to be optimized. But since you’re generating random unique identifiers on each pageload (it seems?), these plugins will continue to optimize these stylesheets, eventually crashing the site.Some examples:
- ?sp-wpcp-google-fonts6320b9a0e2512
- ?sp-wpcp-google-fonts6320b9a283b1e
I’ve fixed the issue in OMGF, but I suggest you remove the unique identifiers from the
id
attribute, since it’s a misuse of theid
attribute’s purpose and because more (CSS optimization) plugins might use theid
attribute for similar purposes.
- The topic ‘Adds a unique identifier to Google Fonts’ is closed to new replies.