• Resolved Pratham

    (@pratham2003)


    Hi,

    Can the plugin be modified to only load CSS / JS if there is a recipe plugin feature being used on the page?

    Currently I see the plugin is loading the javascript and css files even when there is no recipe plugin shortcode being used on the page.

    This leads to unused css and javascript issue related to pagespeed insights. This would also help lower the time-to-interactive metric on pages where there is no recipe card present.

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

    (@brechtvds)

    If “Only load Assets when needed” is enabled on the WP Recipe Maker > Settings > Performance page that should already be the case.

    Do you have that enabled? If so, can you give me an example of where it’s still loading assets?

Viewing 1 replies (of 1 total)
  • The topic ‘Only load resources if required?’ is closed to new replies.