Frameworks

Offline.js

UnclassifiedOfficial website

Offline.js is a lightweight open-source JavaScript library that automatically detects when a user loses their internet connection and can display customisable offline notifications. It operates entirely client-side in the browser, makes no server requests, collects no data, and sets no cookies. Offline.js has no GDPR implications.

Overview

What does Offline.js do?

What is Offline.js?

Offline.js is a lightweight open-source JavaScript library that detects whether a user's browser has lost its internet connection and can automatically display customisable notifications or UI elements to inform the user. It works by periodically testing connectivity and triggering events when the connection status changes. Offline.js operates entirely within the user's browser and makes no external server calls beyond the optional connectivity test request.

GDPR and Offline.js

Offline.js has no GDPR implications. It is a client-side utility that detects connectivity state. It sets no cookies, stores no personal data, and makes no requests that transmit personal data. The optional connectivity test (a small HTTP request to check if the network is reachable) does not constitute personal data processing as it does not identify individuals.

CDN loading consideration

If Offline.js is loaded from a public CDN, that CDN logs visitor IP addresses. Self-hosting Offline.js as part of your application bundle eliminates this consideration. Include Offline.js via npm and bundle it with your application code.

Practical compliance steps

No GDPR actions are required for Offline.js. Self-host the library via npm bundle rather than loading from public CDNs. No privacy policy entry, DPA, or cookie notice is needed for Offline.js itself.

Compliance

Offline.js and the GDPR

Legal basis
Offline.js is a client-side utility library with no data processing. GDPR does not apply to the library itself.
Risk level
low
Applicable regulations
Not applicable: Offline.js is a client-side utility with no data processing

Impact assessment (DPIA)

A DPIA is not required for Offline.js. The library has no data processing capabilities.

Sample text for your banner

This website uses Offline.js to detect connectivity issues. Offline.js is a client-side library with no data collection. No privacy implications arise from using Offline.js.
Cookies and trackers

What Offline.js sets and contacts

Tracking method
Open-source JavaScript library for offline detection, client-side only, no server communication
Server location
Self-hosted (deployer infrastructure)
Cookieless mode available
Yes

Cookies set (1)

NameTypeDurationPurpose
offline_nonesessionSessionOffline.js sets no cookies. This entry notes its absence for completeness

Third-party domains contacted (2)

  • github.hubspot.com
  • npmjs.com
Questions

Frequently asked questions about Offline.js

Can't find your question? Write to us, we answer fast.

Does Offline.js collect personal data?

No. Offline.js is a client-side connectivity detection library. It operates entirely in the browser and does not collect, store, or transmit any personal data.

Does Offline.js set cookies?

No. Offline.js does not set any cookies. It manages connectivity state entirely in browser memory.

Does Offline.js make network requests?

It makes a lightweight connectivity test request to check if the network is reachable. This request does not include personal data and does not constitute personal data processing. It is functionally equivalent to a browser pinging a server.

Does Offline.js require a privacy policy entry?

No. Offline.js has no data processing and requires no mention in any privacy policy or cookie notice.

Do I need a DPIA for Offline.js?

No. Offline.js has no data processing capabilities.

Is Offline.js actively maintained?

Offline.js was last significantly updated several years ago and is now mostly in maintenance mode. For modern web applications, the browser's native Network Information API and Service Workers provide more powerful offline detection and handling. Offline.js remains functional but new projects may prefer native browser APIs.

How should I include Offline.js in my project?

Install via npm and bundle with your application rather than loading from a CDN. This keeps all static assets on your own infrastructure and avoids third-party CDN IP logging.

Are there modern alternatives to Offline.js?

Yes. The browser's native online/offline event listeners and the Network Information API provide built-in offline detection. Service Workers enable more sophisticated offline handling including cached responses. For simple offline notification needs, a few lines of native JavaScript can replace Offline.js entirely.

Snap.svg

Snap.svg is an icon and illustration library that provides a comprehensive collection of scalable vector graphics for web and application design. It offers consistent, pixel-perfect icons in multiple styles and formats including SVG and web fonts. Snap.svg supports customizable sizing, coloring, and animation. With easy CDN delivery and framework integration, Snap.svg helps designers and developers add professional visual elements to their projects efficiently.

Frameworks

Vike

Vike 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. Vike integrates seamlessly with modern web architectures, ensuring reliable performance and compatibility across browsers and devices. Trusted by businesses worldwide, Vike helps organizations maintain robust websites that meet user expectations and technical requirements.

Frameworks

PHP

PHP is a backend web framework providing a structured environment for building robust server-side applications and APIs. It offers routing, database management, authentication, and middleware support. PHP follows established design patterns and conventions promoting clean, maintainable code. With ORM integration, template engines, and security features, PHP accelerates backend development and enables teams to deliver scalable web applications efficiently.

Frameworks

Moment.js

Moment.js 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. Moment.js is designed to improve operational efficiency, user experience, and digital performance. Trusted by developers and businesses alike, Moment.js offers reliable solutions that scale with organizational needs and evolving web standards.

Frameworks

Twitter Flight

Twitter Flight 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. Twitter Flight integrates seamlessly with modern web architectures, ensuring reliable performance and compatibility across browsers and devices. Trusted by businesses worldwide, Twitter Flight helps organizations maintain robust websites that meet user expectations and technical.

Frameworks

Turbolinks

Turbolinks is a digital analytics solution that helps businesses measure and understand their online performance through comprehensive data collection and analysis. It provides visitor tracking, behavioral insights, and conversion metrics across websites and applications. Turbolinks supports custom event tracking, audience segmentation, and automated reporting. With intuitive dashboards and visualization tools, Turbolinks enables informed decisions that improve experience and drive results.

Frameworks

Make your site compliant today.

Free up to 25,000 sessions a month. No credit card, no commitment.