• Resolved phphphph

    (@phphphph)


    Hi

    Thanks for this lovely plugin!

    I noticed that the script for the plugin is being loaded on all pages of the site. As we’re trying to optimise for speed, it would be great if the scripts were only loaded on the Linky page.

    To achieve this we’ve taken the liberty to do some changes in linky/src/Linky.php:

    We’ve moved everything in public function linkyPluginEnqueue() inside if(!empty(get_query_var( 'is_linky' ))). That appears to do the trick.

    But maybe that is something you could implement.

    Thanks for you support!

    • This topic was modified 4 years, 8 months ago by phphphph.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Load Linky resources only on Linky page’ is closed to new replies.