Skip to main content

Self-Host External CSS and JavaScript

Updated over 3 weeks ago

FlyingPress can automatically download and serve key external CSS and JavaScript files locally to improve loading speed and reliability.

How it works

When enabled:

  • FlyingPress detects supported third-party resources (like CSS/JS libraries) loaded from known CDN domains

  • These files are downloaded and served from your own site’s domain

  • This avoids external DNS lookups and improves caching by browser and CDN

Benefits

  • Faster load times by eliminating external requests

  • Improves PageSpeed and Core Web Vitals scores

  • Reduces reliance on third-party networks

  • Keeps critical styles and scripts always available

This is especially useful when using popular libraries like Bootstrap, Font Awesome, or jQuery from external CDNs.

Default supported domains

FlyingPress automatically self-hosts assets from the following domains:

  • cdn.jsdelivr.net

  • cdnjs.cloudflare.com

  • unpkg.com

  • code.jquery.com

  • ajax.googleapis.com

  • use.fontawesome.com

  • bootstrapcdn.com

  • cdn.rawgit.com

Customizing domains

You can add or modify the list of self-hosted domains using a filter.

Did this answer your question?