New Google Page Speed tool - How to fix issues in Webflow

Hello @webdev and @vincent . I used the lazy loading tips you both have mentioned in other posts (Exclude element from Page Load and I want my header to load first - #4 by webdev) as a way to delay the loading of my cart wrapper. The stripe and paypal scripts seem to have a large impact on my page load times. I made the cart wrapper class Cart_Wrapper and added the following code to the end of the tag in Project Settings:

$(function() {
$(‘.Cart_Wrapper’).lazy({
delay: 2000
});
});

After this modification, the stripe and paypal scripts no longer appear in the Google Lighthouse audits under “Eliminate Render-blocking scripts.” What are your thoughts on this modification? Is it advisable? Thank you for your time.


Website: https://www.savvyjackwax.com/product/mustache-wax
Read-only link: https://preview.webflow.com/preview/savvyjack-v2?utm_medium=preview_link&utm_source=dashboard&utm_content=savvyjack-v2&preview=959011ce61986c625326fcc2687cb0cd&mode=preview

3 Likes