Reduce unsued java script HELP

Hello, I have a video and photo-heavy site as my business is video.
The web vitals are web and there are many JS. https://pagespeed.web.dev/analysis/https-getcameracrew-com-hire-camera-operator-amsterdam-netherlands/k3urjxs9by?hl=en_GB&form_factor=mobile

I don’t know how can I fix this. Is there a solution here?
https://preview.webflow.com/preview/get-camera-crew?utm_medium=preview_link&utm_source=designer&utm_content=get-camera-crew&preview=1951c21b1cde8fbd0744ebe826d0b7fa&pageId=6482df9c650c93156941029b&itemId=6482df9c650c931569410597&workflow=preview


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

Hi Firart, taking a look there are lot of HTTP requests to Vimeo causing your site to be slow you can lazy load them and use the code embed offered by Viemo to do so. Here is a similar issue to yours which may of help!

1 Like

Hmm, I tried it but it seems like it actually lowered the score but it should’ve improved it… Interesting.

Hmm it did go up on my end from 28 to 48 however still bad can I ask what is this for as this request has a huge payload (500kb) according to Gmetrix and also have you tried to host the video internally?

This 500KB CRM’s embed form I think comes with its own JS.

By the way, I am only concerned about mobile. The desktop is good.

Any ideas?
Maybe I can just cancel videos on mobile?

The most performant approach is to use lightboxes for videos. Exactly as is done on youtube and vimeo themselves.

Yeap so checking around Jeff is correct also youd want re-arrange your form embed into the footer so it loads last and then use interactions and indexes to rearrange hope you get to the bottom of it and have linked a similar issue down below and stuff you can also look into

Lightbox solved the issue. Now can I also load the form JS on button click? or shall I add the form to the footer?

Thank you everyone!

I was thinking if I can load the form JS (500KB) on button click?

1 Like

Can I get a quote for a full lighthouse optimization for my site?

Hi Firat, so to answer your question about on button click you’ll need to use JS custom code to achieve that a good example would be this

https://preview.webflow.com/preview/finsweetwebflowhacks?utm_medium=preview_link&utm_source=showcase&utm_content=finsweetwebflowhacks&preview=9759b36acb60289794bf1a40158fc1e6&pageId=5fa2e0d8b22b339dd8ca74de

and what do you mean about the quote, would you want an audit of your site?

Hi Firat,

I can improve the page speed performance score for Mobile and desktop as max as possible at Google page speed insights.
https://pagespeed.web.dev/analysis/https-getcameracrew-com-hire-camera-operator-amsterdam-netherlands/k3urjxs9by?hl=en_GB&form_factor=mobile

I am expert in website speed optimization and done it many times.
Let me know if you are interested ?

Thanks
Amit

Hey Amit Yes I am interested. Send me DM

Hi Firat,

So, can we start the work?

Thanks

I think I figured it out thank you!