• Resolved T_ed

    (@t_ed)


    Doing optimization on my website noticed, that /wp-content/plugins/site-reviews/assets/scripts/site-reviews.js is loading on every page, even where is no reviews. Maybe you will consider to change that behavior for performance sake and better pagespeed scores?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    The problem with this is that it’s difficult to determine when Site Reviews is used on a page. The plugin is very flexible, you can use widgets, Elementor widgets, shortcodes, and other advanced options such as building a custom solution using the helper functions. This is one of the reasons why other plugins such as Woocommerce also load their scripts on every page.

    With the HTTP/2 protocol now a standard, the performance impact is also minimal since assets on the page are always fetched in parallel. Read more about that here: https://kinsta.com/learn/what-is-http2/#main_benefits_of_http2

    You could also use one of the many caching and optimisation plugins, most allow you to combine your page scripts into one file which is cached…(although, again with HTTP/2 the performance increase for this is negligible).

    Things like pagespeed scores should also be more of a guideline, and real-world differences between a 7-10 score is probably less than you think (depending on the pagespeed categories obviously). Generally, the biggest performance hit for WordPress websites are unoptimised database queries, unoptimised hooks and filters, and lack of gzip compression and asset caching headers.

    • This reply was modified 2 years, 8 months ago by Gemini Labs.

    @t_ed Just saw this and thought I’d chime in: plugins like Asset CleanUp Pro and Perfmatters allow you to disable certain plugins/scripts on specific pages. I use Asset CleanUp Pro on my site and it works great.

    Might help you get the results you’re looking for.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove site-reviews.js from where it is not needed’ is closed to new replies.