Jump to content

Minify Code (HTML, CSS, JS) for better page load time

Recommended Posts

Site URL: https://www.TwelveAndTwentyEight.com

Hello All - Our Digital Marketing Team told us that our home page size is approx 7 MB which is not good for SEO and needs to be reduced if possible. Below is the breakup of elements contributing to that size from a Chrome Extension called Page Inspector. As you can see JS, CSS is contributing approzx 4 MB to the page size. Is there a way to reduce it by some squarespace settings? Isn't Squarespace optimizing code JS, HTML, CSS on it's own- same way it optimizes image sizes? As per https://www.directom.com/minify-javascript-css-warnings/ Squarespace doesn't optimize code but I am posting here to confirm/check with you all. As a Backup option, I have connected my site to CloudFlare (10 minutes ago) with a hope that it may help in the desired outcome. 

 

0?ui=2&ik=e242dc32a9&attid=0.1&permmsgid=msg-f:1679005048629249487&th=174d06322ba245cf&view=fimg&sz=s0-l75-ft&attbid=ANGjdJ_bX6da3jqHI1lhQo7WSsKSy5JM7PzXlxs4exPo_f-mEYWHIhlR75n4suUwKFWzU0P5BMPhnJEuvTb4Sn2zxR968qicf0SPpuIDajmVjuRcZfBYyFhPjOeDjGs&disp=emb

Co-founder, Twelve and Twenty Eight

Boutique Branding + Graphic Design Studio

www.twelveandtwentyeight.com

Link to comment
15 hours ago, ridhasekhri said:

@tuanphan Thanks for your inputs! I have connected our site to CloudFlare but was wondering why isn't Squarespace minifying code - like it does images I think.

Minify code often causes many unwanted problems. It is very easy to damage the CSS resulting in a broken template.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 6 months later...
  • 7 months later...
  • 3 weeks later...

I did purchase Cloudflare, but they are unable to minify any items that include "min" in the name (which seems to be around 60 files) like https://assets.squarespace.com/universal/scripts-compressed/cldr-resource-pack-19f316c82441424835c5a-min.en-US.js

Curious why Squarespace doesn't minify these universal scripts.

Dominic Gadoury (He, Him)
Director of Development and Operations
Lincoln Square Psychotherapy, PLLC
330 West 58th Street, Suite 314
New York, NY 10019
Fax: 917-456-0339
Office: 646-370-4571
Mobile: 347-933-0313
dominic@lsp.nyc

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.