Conversation
Add pwa-install.js and offline page for full PWA support. Co-authored-by: 𝙝𝙖𝙮𝙙𝙖𝙧𝙤𝙫 <245032476+jas-kha@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
jas-kha
added a commit
that referenced
this pull request
Apr 17, 2026
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.
Progressive Web App Implementation
Converts sonli-usullar.uz into a fully installable, offline-capable PWA.
New files
sw.js— Service Worker with three-tier caching strategy:offline.html— Styled offline fallback page with list of cached pages, auto-reload on reconnect, and branded cyberpunk UIsrc/assets/js/pwa-install.js— PWA install prompt system:beforeinstallprompt)Modified files
manifest.json— Enhanced:display_override,id,lang,dir, 4 shortcuts, maskable icons,edge_side_panel, corrected icon paths to absolute URLsindex.html— Added full Apple/Microsoft PWA meta tags, dualtheme-color(light/dark),apple-touch-startup-image, loadspwa-install.jssrc/assets/js/head-manager.js— Injects PWA meta tags andpwa-install.jsinto every sub-page automaticallysrc/assets/js/capacitor-app.js— Addedcontrollerchangelistener for smooth SW update reload