Load Linky resources only on Linky page
-
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()
insideif(!empty(get_query_var( 'is_linky' )))
. That appears to do the trick.But maybe that is something you could implement.
Thanks for you support!
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.