• Resolved idumlupinar

    (@idumlupinar)


    Hello, I am using host webfonts local along with autoptimize plugin. There is a setting in plugin settings page that says “If you’re using a plugin (such as Autoptimize) to load stylesheets in the footer, enable this to preload the fonts.” I have checked this. Then my Chrome browser displayed following warning in developer console:

    <link rel=preload> has an invalid href value

    Page source displays following html code:
    <link rel='preload' href='' as='style' />

    Could it be due to following configuration in Autoptimize?

    JavaScript Options
    Everything checked except “Load JavaScript early, this can potentially fix some JS-errors, but makes the JS render blocking.” and “If your scripts break because of a JS-error, you might want to try this.”

    CSS Options
    First 3 options checked

    HTML Options
    1st one checked

    CDN Options
    //cdn.mywebsite.com/

    Misc Options
    “Save aggregated script/css as static files?” and “Minify excluded CSS and JS files?” checked

    • This topic was modified 5 years, 6 months ago by idumlupinar.

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

Viewing 1 replies (of 1 total)
  • Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    You should disable the preload option in OMGF if you’re using Autoptimize.

    If that’s the description I added, that’s wrong. I’m sorry. You can’t preload the stylesheet, if you’re combining the stylesheet with others.

    I’ll change the description in the next update.

Viewing 1 replies (of 1 total)
  • The topic ‘Expected or A Bug?’ is closed to new replies.