jQuery
jQuery is the most widely deployed JavaScript library on the web, used by an estimated 70 percent of the top one million websites. It simplifies DOM manipulation, event handling, animations and AJAX requests with a concise chainable API. jQuery itself does not set any cookies. The GDPR question is not the library but where it is loaded from: a self-hosted file raises no third party concern, while loading from code.jquery.com, ajax.googleapis.com or cdnjs.cloudflare.com transmits the visitor IP to a US controlled content delivery network.
What does jQuery do?
What jQuery does and how it appears on a website
jQuery is an open source JavaScript library maintained by the OpenJS Foundation. It exposes a small, chainable API that smooths out browser inconsistencies for DOM manipulation, event binding, animations and AJAX. On a website jQuery appears as a single .js file declared in a script tag, either bundled with the rest of the JavaScript (self-hosted) or fetched from a public CDN such as code.jquery.com, ajax.googleapis.com or cdnjs.cloudflare.com.
Cookies and data collected by jQuery
jQuery itself stores nothing on the device. It does not set cookies, does not write to localStorage, does not fingerprint the browser. The only personal data involved is the standard HTTP request to fetch the script: the visitor IP address, the User-Agent header, the referring page URL and TLS metadata. That data is processed by the CDN that hosts the file, not by jQuery as a software component.
GDPR and ePrivacy implications
Loading a script does not store information on the user device, so the strict cookie consent rule of Article 5(3) ePrivacy Directive does not apply per se. However, the request itself transmits the IP address to the third party CDN, which is personal data under the GDPR. The Bonn Regional Court ruling of 20 January 2022 on Google Fonts confirmed that this transmission requires either a clear legal basis or prior consent. The same logic applies to any external CDN used to deliver jQuery.
International data transfers
All three major public jQuery CDNs are US controlled. code.jquery.com is operated by the OpenJS Foundation through StackPath / Edgio infrastructure, ajax.googleapis.com is part of Google global infrastructure, and cdnjs.cloudflare.com runs on Cloudflare. Even when the response is served from a European edge node, the provider remains subject to US law. Google LLC and Cloudflare Inc. are certified under the EU-US Data Privacy Framework, which provides an adequacy basis for the transfer; the jQuery Foundation CDN relies on Standard Contractual Clauses.
Consent and legal basis
For self-hosted jQuery, legitimate interest under Article 6(1)(f) GDPR is sufficient since no third party receives data. When using a public CDN, the operator must either obtain prior opt-in consent before the script tag is rendered, or document a strong legitimate interest balanced against the visitor right to data protection. The safest option for European websites is to self-host the file or to use an EU CDN such as Bunny CDN, KeyCDN or Scaleway Edge.
Practical compliance steps
Audit every page for jQuery script tags pointing to a third party origin, download the matching version, host it on the same domain or on an EU CDN, add a Subresource Integrity hash to the script tag for security, document the choice in the privacy notice, and remove the dependency on code.jquery.com or googleapis.com if user consent is not collected. Where consent is preferred, integrate the script load into the Consent Management Platform so it only fires after opt-in.
jQuery and the GDPR
jQuery is classified as “Unclassified”. On a site that targets European visitors, it must only load after the visitor consents, and it must be listed in your cookie policy.
- Legal basis
- Legitimate interest under Article 6(1)(f) GDPR when jQuery is self-hosted from the same domain or an EU located CDN. Following the Bonn Regional Court ruling on Google Fonts (20 January 2022, 18 O 17/22), loading jQuery from a non-EU CDN that receives the visitor IP can require prior consent unless self-hosting or a strictly EU CDN is used.
- Risk level
- low
- Applicable regulations
- GDPR, ePrivacy Directive, German TTDSG / TDDDG, Bonn Regional Court ruling on Google Fonts, EU-US Data Privacy Framework
Impact assessment (DPIA)
A DPIA is generally not required when jQuery is self-hosted from the same origin as the website. A short transfer impact assessment is recommended when the library is loaded from a non-EU CDN, documenting the data minimisation (only IP and User-Agent), the certification of the CDN provider under the EU-US Data Privacy Framework, and the option to self-host or switch to a strictly EU CDN.
Sample text for your banner
This website loads jQuery from an external content delivery network. When the script is fetched, your IP address and browser information are transmitted to the CDN provider. By clicking Accept, you authorise this technical request. You can also choose Reject and the website will load a self-hosted version of jQuery from our own domain.
What jQuery sets and contacts
- Tracking method
- JavaScript library loaded from a CDN or self-hosted. No cookies set by jQuery itself, but the hosting CDN logs IP addresses, User-Agent strings and referrers.
- Server location
- Depends on hosting. Self-hosted: same location as the website. code.jquery.com CDN: served by StackPath / Edgio with global edge locations. ajax.googleapis.com: Google global infrastructure. cdnjs.cloudflare.com: Cloudflare global edge network.
- Cookieless mode available
- Yes
- Data transferred outside the EU
- When jQuery is loaded from a non-EU CDN, the visitor IP address is transmitted to a US (or globally distributed) edge server. code.jquery.com is operated by jQuery Foundation through US infrastructure, ajax.googleapis.com is operated by Google LLC, cdnjs.cloudflare.com is operated by Cloudflare Inc. All three are US controlled entities, even if EU edge nodes are used for the response.
Third-party domains contacted (4)
code.jquery.comajax.googleapis.comcdnjs.cloudflare.comjquery.com
Frequently asked questions about jQuery
Can't find your question? Write to us, we answer fast.
Does jQuery set any cookies?
No. The jQuery library does not set cookies, does not write to localStorage and does not fingerprint the browser. It is a pure DOM and AJAX helper. The only data exchanged with the network is the HTTP request that downloads the script file, which includes the visitor IP, User-Agent and referrer headers handled by the hosting CDN.
Do I need consent to load jQuery on a European website?
When jQuery is self-hosted from the same domain as the website, no consent is needed. When loaded from a third party CDN such as code.jquery.com, ajax.googleapis.com or cdnjs.cloudflare.com, the visitor IP is transmitted to a non-EU provider. Following the Bonn Regional Court ruling on Google Fonts, this transfer can require prior consent unless self-hosting or an EU CDN is used.
What is the legal basis for loading jQuery?
Legitimate interest under Article 6(1)(f) GDPR is sufficient for self-hosted jQuery. For third party CDN loading, either gather prior opt-in consent (Article 6(1)(a)) or rely on a documented legitimate interest with proper transfer impact assessment and clear privacy information.
Does loading jQuery transfer data to the US?
Yes when a public CDN is used. code.jquery.com, ajax.googleapis.com and cdnjs.cloudflare.com are operated by US controlled entities. Google LLC and Cloudflare Inc. are certified under the EU-US Data Privacy Framework. To eliminate the transfer entirely, host the script on your own EU based server.
Is a DPIA required for jQuery?
No, jQuery alone does not justify a DPIA. A short transfer impact assessment is enough when an external CDN is used. Only embed the assessment in a broader DPIA if jQuery is combined with high risk processing in the same site.
How do I implement jQuery compliantly?
Self-host the jQuery file from your own domain or an EU based CDN, add a Subresource Integrity hash and a Content Security Policy that pins the source, document the choice in the privacy notice and audit periodically that no third party tag silently re-imports jQuery from a US CDN.
Are there alternatives to jQuery?
Modern browsers support most of what jQuery provides natively: document.querySelector, addEventListener, fetch and the Web Animations API replace nearly all common jQuery patterns. Lightweight alternatives include Cash, Zepto.js and umbrella.js. For new projects, a framework such as Alpine.js, Stimulus, Vue or React often supersedes jQuery.
How do I update the cookie policy for jQuery?
If jQuery is self-hosted, no specific mention is required. If a third party CDN is used, list the CDN provider, describe that the visitor IP is transmitted on each page load, mention the EU-US Data Privacy Framework or Standard Contractual Clauses applicable, and link to the CDN provider privacy policy.
With Reach
With Reach is a web technology service that provides essential functionality for websites and digital platforms. It delivers core capabilities that support site operations, content delivery, and user experience optimization. With Reach integrates seamlessly with modern web architectures, ensuring reliable performance and compatibility across browsers and devices. Trusted by businesses worldwide, With Reach helps organizations maintain robust websites that meet user expectations and technical requirements.
Parse Platform
Parse Platform is a foundational web service that powers critical website functions and digital experiences. It provides reliable infrastructure, seamless integration capabilities, and consistent performance across all devices and browsers. Parse Platform supports modern development practices and scales with growing business needs. With a focus on stability and compatibility, Parse Platform ensures your website delivers a smooth, uninterrupted experience to every visitor and search engine crawler.
jQuery Sparklines
jQuery Sparklines is a JavaScript library that simplifies web development by providing utility functions, DOM manipulation tools, and cross-browser compatibility. It offers a clean, chainable API that reduces code complexity and development time. jQuery Sparklines supports AJAX requests, event handling, and animation effects. With extensive documentation and a vast plugin ecosystem, jQuery Sparklines remains a reliable choice for developers building interactive, performant web experiences.
Hasura
Hasura is a versatile web technology that supports digital platforms with specialized functionality and enhanced capabilities. It provides robust tools and services that integrate with modern websites and applications seamlessly. Hasura is designed to improve operational efficiency, user experience, and digital performance. Trusted by developers and businesses alike, Hasura offers reliable solutions that scale with organizational needs and evolving web standards.
MooTools
MooTools is a web technology service that provides essential functionality for websites and digital platforms. It delivers core capabilities that support site operations, content delivery, and user experience optimization. MooTools integrates seamlessly with modern web architectures, ensuring reliable performance and compatibility across browsers and devices. Trusted by businesses worldwide, MooTools helps organizations maintain robust websites that meet user expectations and technical requirements.
React Native for Web
React Native for Web is a JavaScript framework designed for building fast, interactive, and scalable web applications. It provides component-based architecture, reactive data binding, and efficient DOM rendering. React Native for Web supports server-side rendering, static site generation, and progressive web apps. With a rich ecosystem of plugins and developer tools, React Native for Web accelerates frontend development and delivers exceptional user experiences with optimized performance and SEO-friendly output.
Make your site compliant today.
Free up to 25,000 sessions a month. No credit card, no commitment.