Hello! I noticed that my Google Pagespeed score drops a good bit when adding a widget for Google Reviews “the reduce unused Javascript section” which is now up to a 5.44s delay.
Any tips on how to improve performance? I’ve decreased the number of reviews that pull into the widget & removed the slider option but neither seems to make much of a difference.
Unfortunately, I need to tell you that there’s no possibility to reduce the unused JavaScript size, I’m really sorry about it. The thing is that the majority of our widgets, including Google Reviews widget, have hidden functionality that is not used all the time but activated when needed. For example, the Google Reviews widget uses cache and updates once every 48 hours. Between the update period, the part of the code used for it is considered unused by Google PageSpeed.
However, you are very welcome to reinstall your widget by using some kind of lazy loading. Though, please keep in mind that this way of installation won’t meet your needs in case you would like to display your static widget above the fold.
Please replace WIDGET_ID in the code above with the ID of your own widget and add this code to your website backend right to the place where you’d like to display the widget.
Please let me know if you have other questions!Preformatted text
Will it work for floating forms that have a button on the bottom right, or do they need to load right away?
Also can you tell me, once the website visitor scrolls down to the section where the reviews or social feed or whatever widget is displayed, how long will it take to display if it “lazy loads”?
Hi @Hugh, my apologies for the late reply! It seems we’re in different time zones
By now, our developers have found a lazy loading workaround for static widgets only, so I’m afraid we can’t improve the loading speed for floating widgets at the moment. We hope that our devs will find a workaround in the future, though.
At the moment, the only thing I can recommend you in this situation is to change the widget’s layout to Embed and install it to a certain place of your website.
As for the lazy loading speed, it mostly depends on a user’s Internet connection speed
Hello,
I have performance issues as well on multiple pages. As you can see on the screenshot, the loading times of almost 7 seconds are very huge for roughly 700kb of data.
I’m really sorry for this error, but I’m happy to say that everything should be working just fine now. You see, unfortunately, we did experience a temporary technical glitch on July 1, which might have been the reason for the issue you encountered.
Could you please check your widget now and let me know if you’re good?