Jump to content

How to download and host Google ajax jquery local in squarespace

Go to solution Solved by paul2009,

Recommended Posts

Hello everybody!

I am not an expert in designing a website, so I hope you can help me.

For my site I am using the following link in my code injection:

<html lang="de">

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Because of the problems with the GDPR I really would like to download and host this data local in squarespace.

Is this possible?

Thank you very much in advance!


Link to comment
  • Replies 2
  • Views 690
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

  • Solution
On 12/8/2022 at 6:54 AM, PabloHamburg said:

Because of the problems with the GDPR I really would like to download and host this [jQuery file] in squarespace. Is this possible?

Yes. You can download the jQuery file manually and then upload the file to your Squarespace site. After doing this you can amend your script source above to point to the new source of the file.

Instead of //ajax.googleapis.com/ajax/libs/jquery/1/filename it will be /s/filename.

That said, a couple of points to note:

  • jQuery 1 is very old and has known security vulnerabilities. Do ensure you use the latest version of jQuery that doesn't have vulnerabilities. 
  • When you upload the file to Squarespace, the filename may change. You can check the new filename after uploading it by hovering over the link you have created.

Let me know if this is clear, or if you need further information.

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

Edited by paul2009

About me: I'm Paul. A SQSP User for 18 yrs, I joined Circle when it launched in 2016 and have been a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing expertise and extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own 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 fuels my work.

Book paid help with a Squarespace Domain

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.