Title: Weird html characters
Last modified: August 30, 2022

---

# Weird html characters

 *  Resolved [wpzzzdev](https://wordpress.org/support/users/wpzzzdev/)
 * (@wpzzzdev)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/weird-html-characters/)
 * After optimizing omgf, I see strange characters in html, tell me, is it supposed
   to be like that or is there a problem somewhere?
    [screenshot](https://prnt.sc/0dJFtB50U-82)
    -  This topic was modified 3 years, 9 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
      Reason: fixed link (removed blank)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fweird-html-characters%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/weird-html-characters/#post-15964488)
 * Wow, this is superweird. Seems like something’s going wrong with encoding or 
   something.
 * Can you put OMGF in Test Mode (at the bottom of the Optimize Fonts tab)? That’ll
   allow me to run some tests, without interfering with your visitors.
 *  Thread Starter [wpzzzdev](https://wordpress.org/support/users/wpzzzdev/)
 * (@wpzzzdev)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/weird-html-characters/#post-15964529)
 * [@daanvandenbergh](https://wordpress.org/support/users/daanvandenbergh/) yes,
   of course, done
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/weird-html-characters/#post-15966196)
 * Hi again!
 * I looked at the issue and I’m carefully assuming another (optimization?) plugin
   is doing this.
 * The thing is that it only occurs with the preloaded fonts, but the way they’re
   inserted is modified entirely. It should look like this:
 * `<link id="omgf-preload-0" rel="preload" href="https://path.com/to/preloaded/
   file.woff2" />`
 * But, it’s changed to an inline style:
 * `<style id="omgf-preload-0" media="print">[weird encoded characters]</style>`
 * Which makes no sense, because you can’t preload an inline style. So, I don’t 
   know why this plugin is doing this. It’s like it’s trying to insert the literal
   contents of the file inline?
 * Like I said, this looks like the work of an optimization plugin, so I’d start
   with disabling those to see if that resolves the issue. Then you can narrow it
   down by enabling them again one by one.
 * Looking forward to your findings!
 *  Thread Starter [wpzzzdev](https://wordpress.org/support/users/wpzzzdev/)
 * (@wpzzzdev)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/weird-html-characters/#post-15966455)
 * [@daanvandenbergh](https://wordpress.org/support/users/daanvandenbergh/) yes,
   you right, after disable Debloat plugin, this symbols removed, but I did some
   more research and found out that the problem is caused by this setting ” Inline
   the CSS to prevent flash of unstyled content. Highly recommended.” I attached
   a screenshot. But when I disable it, the pagespeed reading goes down by ~20 points,
   which means I can’t give it up. Any ideas how to solve this problem?
 * [screenshot](https://prnt.sc/e60hbI2Sof1p)
 *  Thread Starter [wpzzzdev](https://wordpress.org/support/users/wpzzzdev/)
 * (@wpzzzdev)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/weird-html-characters/#post-15966468)
 * [@daanvandenbergh](https://wordpress.org/support/users/daanvandenbergh/) oh, 
   I managed to solve this problem by simply adding id:omgf-preload-0 and id:omgf-
   preload-1 to the optimization plugin exceptions
    And seems now this works [screenshot](https://prnt.sc/W6lju_bD6ADZ)
    -  This reply was modified 3 years, 9 months ago by [wpzzzdev](https://wordpress.org/support/users/wpzzzdev/).
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/weird-html-characters/#post-15966487)
 * Awesome! Happy you got it resolved!
 * But I’d still contact the devs of the plugin, because they shouldn’t try to inline
   preloadede elements. So, that’s a bug 🙂
 * Anyway, when you have the time, I’d highly appreciate a review!
 * You can write one [here](https://wordpress.org/support/plugin/host-webfonts-local/reviews/#new-post).
 *  Thread Starter [wpzzzdev](https://wordpress.org/support/users/wpzzzdev/)
 * (@wpzzzdev)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/weird-html-characters/#post-15966514)
 * Yes, I will let them know about this problem, thank you
 * review – done 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Weird html characters’ is closed to new replies.

 * ![](https://ps.w.org/host-webfonts-local/assets/icon-256x256.png?rev=3300821)
 * [OMGF | GDPR/DSGVO Compliant, Faster Google Fonts. Easy.](https://wordpress.org/plugins/host-webfonts-local/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/host-webfonts-local/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/host-webfonts-local/)
 * [Active Topics](https://wordpress.org/support/plugin/host-webfonts-local/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/host-webfonts-local/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/host-webfonts-local/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [wpzzzdev](https://wordpress.org/support/users/wpzzzdev/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/weird-html-characters/#post-15966514)
 * Status: resolved