propertyhive / WP-Property-Hive

The complete estate agency software plugin for WordPress
Other
27 stars 27 forks source link

(Feature Request) Reduce unused JavaScript #220

Open joshpyzer opened 1 year ago

joshpyzer commented 1 year ago

We're looking at performance on some of our sites using Property Hive and Lighthouse moans at us about used JS and some of them are Property Hive scripts like the Google maps key and radial search scripts that aren't used on every page on the site.

Is there any way to limit these scripts so they are only pulled out on Property Hive templates to help with performance?

Thanks

Martin-PH commented 1 year ago

Hi Josh,

Hope you are well.

We currently don't have something that modifies how scripts are loaded yet but we are looking at performance related improvements that are added to our development roadmap and will be implemented in the upcoming weeks.

We'll consider your suggestion and soon as we have those changes introduced, we'll send you a reminder to update the Property Hive core plugin.

Kind regards, Martin