feat: add PageSpeed optimizations for exported projects#29
Open
maboudharam wants to merge 1 commit intoyoanbernabeu:mainfrom
Open
feat: add PageSpeed optimizations for exported projects#29maboudharam wants to merge 1 commit intoyoanbernabeu:mainfrom
maboudharam wants to merge 1 commit intoyoanbernabeu:mainfrom
Conversation
JavaScript & Build: - Add Terser minification with console/debugger removal - Add Gzip and Brotli compression via vite-plugin-compression - Add vendor chunk splitting for React CSS & Fonts: - Add critical CSS inline in index.html - Add font-display: swap and latin subset for Google Fonts - Add preconnect and dns-prefetch for external resources Images: - Add WebP conversion for PNG/JPG images (Canvas API) - Add <picture> elements with WebP fallback - Add lazy loading and width/height attributes - Pre-compute WebP URLs and video detection (avoid regex per render) Caching: - Add cache headers for Vercel (vercel.json) - Add cache headers for Netlify (netlify.toml) - 1 year max-age for static assets Code quality: - Centralize regex patterns in helpers.ts - Add isWebpConvertible() utility function - Parallelize WebP conversions with Promise.all() - Filter non-convertible formats (SVG, GIF, WebP) Closes yoanbernabeu#23
Contributor
Author
|
Performance is OK, but accessibility & SEO could be improved I think |
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.
Description
JavaScript & Build:
CSS & Fonts:
Images:
Caching:
Code quality:
Related Issue
Closes #23
Type of Change
Checklist
npm run lintand fixed any issuesnpm run formatto format my codenpm run type-checkwith no errorsnpm run devScreenshots (if applicable)
Additional Notes
All optimizations are applied to the exported project, not the OpenBento builder itself.