CDN (Content Delivery Network)
Try the CDN (Content Delivery Network) Quiz →A CDN is a globally distributed network of servers that delivers files to users from the location nearest to them, reducing load time. On this site, some tools load large third-party libraries (such as Tesseract.js, SheetJS, and PDF.js) from a CDN instead of bundling them.
- A CDN serves files from the edge server geographically closest to the user, reducing latency compared to a single origin server.
- Only library code is fetched from a CDN - your files, text, and input data never leave your browser.
- After the first download, the browser caches CDN files so repeat visits in the same session skip the network request entirely.
- The main trade-off of CDN loading is a dependency on a third-party service: if the CDN is unreachable, the tool cannot load its library.
- Tesseract.js (OCR) is approximately 25 MB from CDN because it includes the language model; simpler libraries like KaTeX are under 0.5 MB.
What is CDN (Content Delivery Network)?
A Content Delivery Network (CDN) is a geographically distributed network of servers designed to serve files to end users from the location closest to them. Instead of every request travelling to a single origin server, a CDN caches and serves copies of files from dozens or hundreds of edge locations worldwide. This reduces the physical distance data must travel, lowering latency and improving load speed.
CDNs are most commonly used to deliver static assets: JavaScript libraries, CSS files, fonts, images, and video. Large open-source libraries such as Tesseract.js (OCR), SheetJS (Excel processing), and PDF.js (PDF rendering) are routinely served from public CDNs because distributing multi-megabyte bundles with every page load would be slow and expensive for small sites.
When this site mentions that a tool "loads from CDN," it means the browser fetches a third-party library file from an external CDN provider (such as jsDelivr or unpkg) the first time you use that tool. Only the library code is fetched - none of your files or data are sent anywhere. After the first load, the browser caches the file, so repeat visits in the same session skip the download entirely.
CDN (Content Delivery Network) explained to a beginner
Imagine a library with one central branch downtown and ten local branches around the city. If you need a book, it is much faster to walk to the nearest local branch than to travel downtown. A CDN works the same way: instead of every user's browser fetching a file from one server on the other side of the world, the browser fetches it from a nearby server in its own region.
On this site, CDN loading means a specialised JavaScript file - for example, the program that reads text out of images - is fetched from that nearby server the first time you use the tool. Your actual files and data stay entirely on your device.
When to use CDN (Content Delivery Network)
Understanding CDN loading matters when you are on a slow or metered connection, or using a browser with strict content-security policies. If a tool states it "requires no CDN," it means all code is already bundled with the page - nothing external is fetched, and the tool works offline.
Worked examples for CDN (Content Delivery Network)
This table quickly gives you the overview you need to understand CDN (Content Delivery Network) and its most important comparisons.
| Library | Used for | CDN size (approx.) |
|---|---|---|
| Tesseract.js | OCR - image to text | ~25 MB (includes language model) |
| SheetJS (xlsx) | Excel / spreadsheet parsing | ~1 MB |
| PDF.js | PDF rendering and text extraction | ~2 MB |
| mammoth.js | Word (.docx) document parsing | ~0.5 MB |
| KaTeX | Math formula rendering | ~0.3 MB |
Common pitfalls
The main trade-off with CDN loading is a dependency on a third-party service. If the CDN is unreachable (rare, but possible), the tool will fail to load its library and will not function. Tools that bundle all code locally avoid this dependency but increase the initial page weight. This site uses CDN loading only for large, infrequently-used libraries where the trade-off favours CDN delivery.
Frequently asked questions about CDN (Content Delivery Network)
Does loading from a CDN mean my files are uploaded somewhere?
No. CDN loading only fetches library code - the JavaScript that powers a tool. Your files, text, and input data never leave your browser. The distinction is: the library comes down to your browser from the CDN; your data stays entirely on your device.
Why do some tools on this site require a CDN and others do not?
Tools that need large specialised libraries (OCR, Excel parsing, PDF rendering) load those libraries from a CDN to avoid bloating the initial page load for all visitors. Simpler tools - such as the text and code comparison tools - run on pure JavaScript that is bundled directly into the page, requiring no external CDN fetch.
Will the CDN library be re-downloaded every time I use the tool?
No. Your browser caches CDN files after the first download. Subsequent uses in the same browser session (and often across sessions, depending on cache expiry headers) will serve the file from your local browser cache rather than fetching it again.
Quiz: how well do you know CDN?
1. What is the primary purpose of a Content Delivery Network (CDN)?
2. When this site says a tool "loads from CDN," what is being fetched from the external CDN provider?
3. According to the examples table, which CDN library is the largest at approximately 25 MB?
4. What does the pitfalls section identify as the main trade-off of CDN loading?
5. According to the FAQ, which types of tools on this site do NOT require CDN loading?