# Sollte ich Drittanbieter-Bibliotheken von Vendor oder CDN laden?

**URL:** <https://meta.discourse.org/t/should-i-load-third-party-libraries-from-vendor-or-cdn/205357>\
**Category:** Development\
**Created:** [6. Oktober 2021 um 14:16 UTC](https://meta.discourse.org/t/should-i-load-third-party-libraries-from-vendor-or-cdn/205357 "2021-10-06T14:16:40Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [6. Oktober 2021 um 17:27 UTC](https://meta.discourse.org/t/should-i-load-third-party-libraries-from-vendor-or-cdn/205357/3 "2021-10-06T17:27:46Z")

</div>

> [@Johani](#):
>
> Das bedeutet, dass, wenn ein Nutzer Site A besucht – die cdnjs für jQuery verwendet – und dann Site B besucht, die dieselbe Datei mit derselben Version verwendet, der Browser jQuery nicht erneut herunterladen muss, da es im Cache gespeichert ist. Das führt zu schnellerem Laden der Seiten.

Kleines Update: Chrome, Safari und Firefox funktionieren nicht mehr so. Es gibt keinen geteilten Cache mehr zwischen den Seiten:

> **[Shared Cache is Going Away](https://www.jefftk.com/p/shared-cache-is-going-away)**
>
> Browsers historically have had a single HTTP Cache. This meant that if www.a.example and www.b.example both used cdn.example/jquery-1.2.1.js then JQuery would only be downloaded once. Since it's the same resource regardless of which site initiates...

---

_[View the full topic](https://meta.discourse.org/t/should-i-load-third-party-libraries-from-vendor-or-cdn/205357)._
