Add resource-fallback — zero-intrusion asset fallback plugin#8266
Closed
ben-lau wants to merge 1 commit into
Closed
Add resource-fallback — zero-intrusion asset fallback plugin#8266ben-lau wants to merge 1 commit into
ben-lau wants to merge 1 commit into
Conversation
Added a new plugin for runtime retry and multi-CDN fallback.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
👋 Hi there! This PR was automatically flagged and closed by our quality checks. If you believe this was a mistake, please review our contributing guidelines |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds resource-fallback — a runtime resource fallback solution for frontend build outputs (Vite & Webpack).
What it does
When a CDN or static asset URL fails at runtime, resource-fallback automatically:
retry → switch to backup CDN → fall back to origin
…without requiring changes to application code. Works with sync/async JS, CSS chunks,
React.lazy, VuedefineAsyncComponent, Vue Router lazy routes, and more.Why it fits this list
@resource-fallback/vite-plugin@resource-fallback/webpack-plugin@resource-fallback/coreHow it differs from similar tools
This is not a build-time CDN import plugin (e.g. swapping React/Vue to a CDN at compile time).
It targets a different problem: your own build artifacts (entry bundles, async chunks, CSS) failing to load in the browser due to CDN/network issues — with a unified retry + multi-source fallback strategy.
Compared to Webpack-only retry plugins, it also covers Vite, DOM
<script>/<link>error handling, optional Hybrid Service Worker for images/fonts/CSSurl(), per-host circuit breaker, kill switches, and CSP/SRI compatibility.Links
README change
See diff — one line under [CATEGORY].