Jump to content

Performance improvement - Render blocking and unused Java script help

Go to solution Solved by paul2009,

Recommended Posts

Hi team!

I am just exploring Chrome Devtools for the first time to improve site performance. A couple of main things that have popped up are 

- eliminate render blocking resources

- remove unused javascript/ CSS

I am a newbie and can't find anything online on how to actually do this. Can anyone help? Point me to a guide somewhere? Would really appreciate it :)

Thanks

Sandra

Link to comment
  • 4 weeks later...
  • Solution
On 6/27/2020 at 2:18 AM, SandraHCopywriting said:

I am a newbie and can't find anything online on how to

- eliminate render blocking resources

- remove unused javascript/ CSS

These are part of the Squarespace custom CMS platform and you cannot remove them.

Bear in mind that these tools are designed for developers who code their sites from scratch and have full control over their code and styles. When you use these tools to test Squarespace sites you'll see results that are not relevant to you.

Things worth considering when trying to increase site performance include:

  • Don't add custom code that you find on forums, without understanding how it works and how it will slow down your site. In particular, try to avoid adding any code that includes a '$' character as this denotes it relies on a comparatively large code library called jQuery that must be downloaded by your visitors, slowing down your site unnecessarily.
  • Don't add third party trackers or pixels, like AddThis, GTM, LinkedIn and so on. These can really slow down your site's loading times.
  • Use Squarespace 7.1 in preference to 7.0. Squarespace 7.1 can appear faster for visitors than Squarespace 7.0 and is constantly being improved.
  • If you are planning to use Squarespace 7.0, use a Brine-family template. Brine-family based sites have a feature called Ajax Loading which improves performance over other 7.0 templates that don't have this feature.
  • Keep image sizes low. Ideally, images should be less than 500KB in size, with a width of 1500px or 2500px.
  • Keep galleries small. Ideally, limit them to 50 images each. 
  • Keep Banner Slideshows small (less than 10 images), especially on 7.0 Index pages and 7.1 pages with multiple sections.
  • Limit the number of Blocks on one page to 60.
  • Use JPEG (.jpg) images where possible (but PNGs for logos). Limit the number of GIFs.
  • Don't heavily compress JPEG images before adding them or their file size may increase after Squarespace processes them 
  • Avoid embedding content where possible. Don't embed content or libraries unless they are essential.
  • Reduce the number of fonts. Fonts must all load behind the scenes before the page can appear in the browser.

-Paul

Did this help? Please give feedback by clicking an icon below  ⬇️

Edited by paul2009
edited for clarity

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment
  • 7 months later...
On 7/25/2020 at 4:11 AM, paul2009 said:

These are part of the Squarespace's custom CMS platform and you cannot remove them.

Bear in mind that these tools are designed for developers who code their sites from scratch and have full control over their code and styles. When you use these tools to test Squarespace sites you'll see results that are not relevant to you.

Things worth considering when trying to increase site performance include:

  • Squarespace 7.1 can appear faster for visitors than Squarespace 7.0 (although it is currently slower on the back-end where you configure it)
  • Squarespace 7.0 Brine-family sites have a feature called Ajax Loading which improves performance over 7.0 templates without this feature.
  • Keep image sizes low. Ideally, images should be less than 500KB in size, with a width of 1500px or 2500px.
  • Keep galleries small. Ideally, limit them to 50 images each. 
  • Keep Banner Slideshows small (less than 10 images), especially on Index pages.
  • Use JPEG (.jpg) images where possible (but PNGs for logos). Limit the number of GIFs.
  • Avoid embedding content where possible. Don't embed content or libraries unless they are essential.
  • Reduce the number of fonts. Fonts must all load behind the scenes before the page can appear in the browser.

-Paul

So basically what are you saying is switch platforms if you want a website that performs better. 🙂

Link to comment
  • 8 months later...
On 7/25/2020 at 12:11 PM, paul2009 said:

These are part of the Squarespace's custom CMS platform and you cannot remove them.

Bear in mind that these tools are designed for developers who code their sites from scratch and have full control over their code and styles. When you use these tools to test Squarespace sites you'll see results that are not relevant to you.

Things worth considering when trying to increase site performance include:

  • Squarespace 7.1 can appear faster for visitors than Squarespace 7.0 (although it is currently slower on the back-end where you configure it)
  • Squarespace 7.0 Brine-family sites have a feature called Ajax Loading which improves performance over 7.0 templates without this feature.
  • Keep image sizes low. Ideally, images should be less than 500KB in size, with a width of 1500px or 2500px.
  • Keep galleries small. Ideally, limit them to 50 images each. 
  • Keep Banner Slideshows small (less than 10 images), especially on Index pages.
  • Use JPEG (.jpg) images where possible (but PNGs for logos). Limit the number of GIFs.
  • Avoid embedding content where possible. Don't embed content or libraries unless they are essential.
  • Reduce the number of fonts. Fonts must all load behind the scenes before the page can appear in the browser.

-Paul

Dear Paul, I have similar performance problems with my page. I'm using analysing platforms such as Sistrix or PageSpeedInsights, and they all say the same: Reduce unused JavaScripr or try to bundle the Script applications. I'm a bit fed up when Squarespace is saying there can't be done anything. We're paying money for the service!

Link to comment
  • 2 weeks later...
On 7/25/2020 at 3:11 AM, paul2009 said:

These are part of the Squarespace's custom CMS platform and you cannot remove them.

Bear in mind that these tools are designed for developers who code their sites from scratch and have full control over their code and styles. When you use these tools to test Squarespace sites you'll see results that are not relevant to you.

Things worth considering when trying to increase site performance include:

  • Squarespace 7.1 can appear faster for visitors than Squarespace 7.0 (although it is currently slower on the back-end where you configure it)
  • Squarespace 7.0 Brine-family sites have a feature called Ajax Loading which improves performance over 7.0 templates without this feature.
  • Keep image sizes low. Ideally, images should be less than 500KB in size, with a width of 1500px or 2500px.
  • Keep galleries small. Ideally, limit them to 50 images each. 
  • Keep Banner Slideshows small (less than 10 images), especially on Index pages.
  • Use JPEG (.jpg) images where possible (but PNGs for logos). Limit the number of GIFs.
  • Avoid embedding content where possible. Don't embed content or libraries unless they are essential.
  • Reduce the number of fonts. Fonts must all load behind the scenes before the page can appear in the browser.

-Paul

Okay, but I am still getting a "poor" rating from Page Speed Insights on pages without any pictures, background images, or gifs, with only a few text boxes, all with the same font. My logo is around 100KB. And it says JavaScript and render-blocking are almost solely responsible for my slow speed.

Is it possible to contact Squarespace and ask them to fix this? Or at the very least does Google not punish Squarespace sites for loading a couple seconds longer? 

I'm not too worried about the customers who already want to buy from me (I do art commissions), but I am worried that my SEOs will go down the tank because Google recently started getting stricter with load times and what sites are prioritized.

Link to comment
On 11/18/2021 at 8:36 AM, FinnRedwoodArt said:

Okay, but I am still getting a "poor" rating from Page Speed Insights...And it says JavaScript and render-blocking are almost solely responsible for my slow speed. Is it possible to contact Squarespace and ask them to fix this?

This topic can be confusing, so let me try to clarify.

I'm not saying that Squarespace performance cannot be improved. Performance can always be improved, regardless of the platform, but in reply to the original question, I'm simply explaining that there is nothing that you or I - or any third party specialist - can do to reduce "unused" or render-blocking JavaScript on Squarespace.

Only Squarespace's Web Performance team can improve the backend code. They've already made significant progress to ensure Squarespace sites compete well and there is more to follow. Where possible, they have removed render-blocking Javascript and are lazy-loading images across websites.

If you're using version  7.0 (or planning to use it) then it's worth bearing in mind that not all of the improvements being made will benefit version 7.0 sites. If you are looking for higher performance, version 7.1 is likely to show better CWVs over time in comparison.

Did this help? Please give feedback by clicking an icon below  ⬇️

Edited by paul2009

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment
  • 1 month later...

Site URL: https://sparrowstartup.com/

CONTEXT:

I've been using https://pagespeed.web.dev/ to find ways to speed up my website. There's been multiple Javascript files which are unused (according to that site). Removing them will speed up load times on mobile/desktop for my website: https://sparrowstartup.com/

If you run my website on that testing site, it'll tell you some scripts should be removed, as shown in the picture attached. Doing so, would help my website load faster on mobile and desktop.

THE ASK:

(1) Can you please recommend how I can do so? My current score is low, I want to be above 70. Any honest, detailed tips would be very much appreciated.

(2) Based on the report from that site, Is there anything else other than removing javascript, that can help me speed up the website?

CC: @tuanphan @bangank36 @creedon | THANK YOU!

java-remve.png

Edited by Sparrow-Startup-Advisors
Link to comment

I can comment on the removing Javascript part of your question.

Unless you've added custom Javascript to your site there is nothing you can do to your site to remove Javascript. This is something only SS can do as they have access to the backend and we don't.

In other words you can remove Javascript you installed yourself on your site but not the Javascript installed by SS.

You can of course report to SS via customer support about unused Javascript but if they'll act on your info only SS knows.

 

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
23 hours ago, creedon said:

I can comment on the removing Javascript part of your question.

Unless you've added custom Javascript to your site there is nothing you can do to your site to remove Javascript. This is something only SS can do as they have access to the backend and we don't.

In other words you can remove Javascript you installed yourself on your site but not the Javascript installed by SS.

You can of course report to SS via customer support about unused Javascript but if they'll act on your info only SS knows.

 

Thanks Creed! 🙂

Waiting on some other responses to see if I can remove those specific scripts that the report pointed out.

Link to comment
  • 1 month later...

I wouldn't say the topic is that confusing, there is a lot that could be done on squarespace side, and they should do more as you are paying for SAAS. Its just as a consumer of their product your hands are tied, and your options are accept it or change platform.

For the record our site also loads extremely slowly, into the minutes for pages to render on a slow connection. As mentioned you can reduce image size and quality, but that's about it. 

Link to comment
  • 10 months later...
  • 1 month later...
  • 4 weeks later...
  • 1 month later...
  • 2 months later...
  • 4 weeks later...

Screenshot2023-09-04211006.thumb.png.2e487dce947c1f7f717ece6c40ae3d6d.pngI ran a speed test & it shows a mobile speed of 45 & desktop speed of 66.  I have unused Java Script,render-blocking resources & several other issues shown on the attached report. Squarespace tells me these aren't issues but I attended an Ad Camp for Facebook & learned that load speeds should be 1-2 seconds or you'll lose people.  How do I resolve these issues?Screenshot2023-09-04211006.thumb.png.2e487dce947c1f7f717ece6c40ae3d6d.pngScreenshot2023-09-04223843.thumb.png.7dbbf89d84fe8e4e48731fd546cb4613.png

 https://pagespeed.web.dev/analysis/https-connecthomelife-com/yj6s7kfa7j?form_factor=mobile

Screenshot 2023-09-04 224007.png

Screenshot 2023-09-04 224213.png

Screenshot 2023-09-04 224410.png

Edited by ConnectHomeLife
Link to comment
  • 3 weeks later...

Hi there,

I've been quit surprised with the latest Speed test I've ran on my website: www.prtwine.com

I have a very simple website design, I dont use any external code, and my homepage exist only of 4 summaries of blogs.  I am running multiple websites and haven't seen this performance before - only on my photography website that is running on a very old template on 7.0 (https://www.rudolfodalamicio.com/
I've red about all the things we cant do - but I am a bit lost on what still to do - as this www.prtwine.com is so basic and I am a bit shocked about the poor performance.
Yes - all logo's are PNG
There is only text from the blogs
There is no other blocks being used other than a search bar

thanks for helping me out @circlemembers 

Link to comment
  • 1 month later...

Hello,

I'm trying to figure out how I could improve my sites "Total blocking time" which is currently at 520 ms and directly impacting my SEO ranking.

I have already optimized/compressed my images. I have ensured each page does not have 40 blocks or more and all my pages are below 1 MB in size. 

When I analyze the root cause of my "Total blocking time" I see Squarespace hosting as the main root cause (photo attached). Is this normal ? 

Regards,

Amit

HypnosCompanyParis

Squarespace TBT image 1.jpg

Squarespace TBT image 2.jpg

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.