• Resolved pablo1020

    (@pablo1020)


    Enabling Optimise JavaScript Code blocks one of my plugins: ‘Use any font’
    Is there a way to exclude this plugin from optimizing?

    Thank you!

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    have a look at the AO FAQ Pablo, it explains how to exclude 🙂

    hope this helps,
    frank

    Thread Starter pablo1020

    (@pablo1020)

    Turns out that blocking the entire any-font folder didn’t help here.

    The font would still visible, but by default it is too small. I am giving this text a class and a style to make it the size I need.

    AO somehow blocks this style or class.
    Any suggestions?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, as you mentioned JS optimization, I suppose you excluded from that?

    next up would be to exclude the style you added (inline or in a file) from CSS optimization?

    Thread Starter pablo1020

    (@pablo1020)

    I have added “plugins/use-any-font” to Exclude scripts from Autoptimize under JavaScript Options, but there is no change.
    It is an inline style, but I only have this there: letter-spacing: 15px;
    I think the rest (font type and size) are taken from class
    How to add it?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    try identifying a unique string in that block of inline CSS and add that. if need be you can add something unique in the inline CSS to make it easier to exclude 🙂

    Thread Starter pablo1020

    (@pablo1020)

    Here is the screenshot from the editor:
    Cornerstone

    And here is what I can see in firefox inspector:
    Inspector

    I am not exactly sure what to add to the exclusion list…

    Also AO has a big impact on the page layout.

    • This reply was modified 7 years, 4 months ago by pablo1020.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ah, it’s inline-inline, that is never aggregated anyhow, so no need to exclude. you could add an !important in there to make sure the style is not overwritten maybe.

    Also AO has a big impact on the page layout.

    can you make a screenshot of one page that has obvious issues and point them out so I can have a look?

    Thread Starter pablo1020

    (@pablo1020)

    Sure, so here is before and after activating the JS optimization.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    so we’re looking at the height of the hero image, right? can you try adding cornerstone/assets/dist/js/ to Autoptimize’s comma-separated JS optimization exclusion list?

    Thread Starter pablo1020

    (@pablo1020)

    that helped with layout and text too, but I have noticed that all the clickable buttons and gallery plugin (The Grid) were gone. I have added the-grid/ to exclusions and it looks good now.
    All the buttons are back as well. I’m checking it on mobile too and it looks all okay.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    great job Pablo! 🙂

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

The topic ‘Optimise JavaScript blocking one plugin’ is closed to new replies.