Jump to content

Help with CSS and slow site

Go to solution Solved by paul2009,

Recommended Posts

Site URL: https://carolineadamscoaching.com

Hi! If this is not an appropriate use of this forum, please tell me...

I'm looking for someone to help me troubleshoot my very slow website, especially on mobile.

After a redesign last year, the site speed ratings crashed. 

My SEO person and I have been trying to troubleshoot, using Squarespace guidance and other resources. (So, yes, we've read and reread the help articles.) We have spent a ton of time reducing images and page sizes, which hasn't made a dent.

We think the issue is with the CSS. Although I do wonder if the main issue is with squarespace itself as corroborated by this post: https://forum.squarespace.com/topic/200667-site-speed-and-its-not-the-images/#comment-482416

I'm on Version 7.0– Brine family (Walking Rovers template). Ajax loading is NOT enabled, so that's an option, but squarespace help says it can mess with CSS. When we asked SQUARESPACE helpdesk if we could just disable AJAX if it ends up causing issues, we didn't get a clear answer. A slow site is better than a broken site.

So I guess my question is twofold:

1) How easy is it to just revert to the original site if AJAX screws up the CSS and breaks the site?

2) If we shared the speed test results, would someone be able to tell us what is CSS vs standard squarespace code that's causing the issues?

I'll add that there seems to be a lot in the CSS about fonts, which I don't quite understand because (I thought) we're using Squarespace-delivered fonts. And I've seen other people comment that using google or typekit fonts works fine on non-squarespace sites. 

Any help or insight you can provide is very much appreciated.

caroline

 

Link to comment

@Caroline2022 

  • Running a Google Lighthouse test on your site, looks like your images are the largest assets being loaded, followed by some JS files. A quick win would be to compress your images using a free service like https://tinyjpg.com/ and re-upload them on the site. I ran your hero background image on the home page through TinyJPG and it went from 568kb to 270kb, so a 52% savings. See attached screenshot.
  • Squarespace uses Typekit and Google fonts for its font library and I'm not aware of a way of disabling them. If there was a way to disable certain fonts that aren't being used, then that would help in the performance area. People might have better results on non-squarespace sites because they may be able to control the amount of custom fonts loaded on a page. Doesn't look like that's the case with Squarespace. Your site appears to be loading 20 custom fonts. It may be the same font, but different weights.

TinyJPG_–_Compress_WebP__PNG_and_JPEG_images_intelligently.png

Edited by jpeter

Full stack developer who loves helping people out with anything web related. If you'd like to support me, buy me a coffee!

Link to comment

@jpeter Thanks so much. Curious what you think about this...

In order to have a sidebar on my blog posts, the designer created a separate "sidebar" web page, then created code to pull that in for each post. This means that this "sidebar" page https://carolineadamscoaching.com/sidebar is being pulled by CSS onto 80+ blog posts.

It doesn't show up on the speed reports when you run at the domain level, but when you run the tests on the actual pages, it's abysmal (see below). 

Do you still think it's best to start with the images on main pages? Only 14 are over 150KB.  And the largest is 611. The majority of these 14 are "elements" used in the theme/backgrounds. We've reduced so many already, and it really hasn't increased performance at all.

I guess I wonder how Google prioritizes: is it better to speed up the main pages or focus first on the sidebar that probably slows down every single blog post?

Thanks so much for your insight!

 

So, here are the numbers from one test last week:
 
 
Test my mobile site speed:  8.9 (which is actually better than we have seen lately)
PageSpeed Insights: 27/64 (mobile/desktop)
GTMetrix: A 90/92
 
 
Test my mobile site speed: NA (only runs domains)
PageSpeed Insights: 14/35 (mobile/desktop)
GTMetrix: C 64/85
 
Sidebar that appears on every blog post (https://carolineadamscoaching.com/sidebar)
See screenshots
 
image.thumb.png.d5a21d530674be97e2f88eab63cd4f97.png
 
 
image.thumb.png.f1218b36600475f08f9117226ce3bdd7.png
 

1694604795_ScreenShot2022-06-02at4_06_18PM.thumb.png.14384d851dcde23710c3d258b7e9bfba.png1340273363_ScreenShot2022-06-02at4_06_08PM.thumb.png.648bbe2f77ac554a445eb0e9be2b9c9d.png1189311410_ScreenShot2022-06-02at4_05_35PM.thumb.png.3d10b6215e8ee11ada26b5fde360fa0e.png1154748171_ScreenShot2022-06-02at4_05_57PM.thumb.png.cf85cbcdd5a15416d2e98f2380613940.png

Link to comment
  • Solution
On 6/7/2022 at 9:38 PM, Caroline2022 said:

After a redesign last year, the site speed ratings crashed. My question is twofold:

1) How easy is it to just revert to the original site if AJAX screws up the CSS and breaks the site?

2) If we shared the speed test results, would someone be able to tell us what is CSS vs standard squarespace code that's causing the issues?

1. Ajax Page Loading can be enabled and disabled using the toggle in Site Styles. The change is immediate. There are no long term effects. Note that CSS added to the Custom CSS panel is not affected by the Ajax Page Loading setting. It will only affect code that has been added through the Code Injection panel.

2. I do not see any specific issues for this site. It compares well with other Squarespace sites using this template. A blog post page loaded in 2s. Also it's worth noting that your performance results for the sidebar page are only correct if a visitor opened this page directly; they are not representative of someone opening the sidebar as a page component on another page. In those circumstances, Squarespace serves the visitor a much smaller image and this has a much smaller file size.

On 6/8/2022 at 1:22 AM, jpeter said:

A quick win would be to compress your images using a free service like https://tinyjpg.com and re-upload them on the site. I ran your hero background image on the home page through TinyJPG and it went from 568kb to 270kb, so a 52% savings

Note that when you upload an image to Squarespace, the platform does some resizing which necessitates re-encoding and re-compressing. If you compress an image before uploading it, the mandatory re-compressing will usually result in a larger file size because the algorithm won't know the difference between "actual image content" and "artifacts of the previous compression run".

Was this post helpful? 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
On 6/8/2022 at 10:43 AM, paul2009 said:

1. Ajax Page Loading can be enabled and disabled using the toggle in Site Styles. The change is immediate. There are no long term effects. Note that CSS added to the Custom CSS panel is not affected by the Ajax Page Loading setting. It will only affect code that has been added through the Code Injection panel.

2. I do not see any specific issues for this site. It compares well with other Squarespace sites using this template. A blog post page loaded in 2s. Also it's worth noting that your performance results for the sidebar page are only correct if a visitor opened this page directly; they are not representative of someone opening the sidebar as a page component on another page. In those circumstances, Squarespace serves the visitor a much smaller image and this has a much smaller file size.

Note that when you upload an image to Squarespace, the platform does some resizing which necessitates re-encoding and re-compressing. If you compress an image before uploading it, the mandatory re-compressing will usually result in a larger file size because the algorithm won't know the difference between "actual image content" and "artifacts of the previous compression run".

 

Was this post helpful? Please give feedback by clicking an icon below  ⬇️

@paul2009This is SOOO helpful, and explains a lot about what we were seeing despite reuploading smaller, resized images. Follow-up question re the sidebar: is this design the best practice or best way to do this? My SEO person is concerned that it's pulled into every single blog post (~80+ posts).

 

 

Link to comment
20 minutes ago, Caroline2022 said:

Follow-up question re the sidebar: is this design the best practice or best way to do this?

There's nothing technically wrong with pulling in content from other pages. That's how Summary Blocks work. However I would suggest changing the code so that the sidebar content isn't loaded when the user is on a mobile, as it will impact performance for them (on slower networks) and Google don't like slow mobile sites.

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
On 6/8/2022 at 5:43 PM, paul2009 said:

Note that when you upload an image to Squarespace, the platform does some resizing which necessitates re-encoding and re-compressing. If you compress an image before uploading it, the mandatory re-compressing will usually result in a larger file size because the algorithm won't know the difference between "actual image content" and "artifacts of the previous compression run".

Hi @paul2009 so you don't recommend to use https://tinypng.com/ or something like that? 😯

👩🏻‍💻 Florence

🇫🇷 I'm like a Squarespace French Guide www.florenceredacchef.com
🖤 I'm animating @squareschool.fr community
⌨️ I've also recently created @apprendresqsp

 

 

Link to comment
4 hours ago, florencepicol said:

so you don't recommend to use https://tinypng.com or something like that?

The way the system works right now, it isn't always helpful. In a test, a high-quality 1.2MB image was compressed using TinyPNG and it became 642KB. However, when Squarespace processed it, the file become 953KB - around 50% larger.

Squarespace recommend that you save the images at a high "quality" setting (95+ in most image tools) so that when it gets resized and re-encoded it's not contending with significant previous compression artifacts.

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
  • 8 months later...

Hi Paul,

This is one that keeps coming up. A lot of people, including myself, use tools like Tiny png for fear of uploading files that are too big and slowing a site down. It would be great to remove this pre-compression step from the process. What would you say is the upper limit though? Would you still recommend uploading a 5mb image for instance without first compressing it?

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.