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!

Pablo

Link to comment
  • Replies 2
  • 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

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

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.