• Resolved wpzzzdev

    (@wpzzzdev)


    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

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    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

    (@wpzzzdev)

    @daanvandenbergh yes, of course, done

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    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

    (@wpzzzdev)

    @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

    Thread Starter wpzzzdev

    (@wpzzzdev)

    @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

    • This reply was modified 2 years, 6 months ago by wpzzzdev.
    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    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.

    Thread Starter wpzzzdev

    (@wpzzzdev)

    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.