pwa-wp | WordPress feature plugin to bring Progressive Web Apps | Web Framework library
kandi X-RAY | pwa-wp Summary
kandi X-RAY | pwa-wp Summary
Progressive Web Apps are user experiences that have the reach of the web, and are: Reliable - Load instantly and never show the downasaur, even in uncertain network conditions. Fast - Respond quickly to user interactions with silky smooth animations and no janky scrolling. Engaging - Feel like a natural app on the device, with an immersive user experience. This new level of quality allows Progressive Web Apps to earn a place on the user's home screen. Continue reading more about Progressive Web Apps (PWA) from Google.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Normalize the configuration .
- Serve the request .
- Render the manifest links and meta tags .
- Get valid file path .
- Get list of banned route patterns .
- Generate the script .
- Get TinyMCE file list .
- Determine if the given url is a local file URL .
- Register emoji script .
- Define the scope .
pwa-wp Key Features
pwa-wp Examples and Code Snippets
Community Discussions
Trending Discussions on pwa-wp
QUESTION
When a browser runs low on storage space, I understand that it will start purging the caches of sites (PWAs) starting with the least-recently visited. Per, Using the Cache API in the service worker:
You are responsible for implementing how your script (service worker) handles updates to the cache. All updates to items in the cache must be explicitly requested; items will not expire and must be deleted. However, if the amount of cached data exceeds the browser's storage limit, the browser will begin evicting all data associated with an origin, one origin at a time, until the storage amount goes under the limit again. See Browser storage limits and eviction criteria for more information.
The linked eviction criteria includes a section on LRU policy:
When the available disk space is filled up, the quota manager will start clearing out data based on an LRU policy — the least recently used origin will be deleted first, then the next one, until the browser is no longer over the limit.
We track the "last access time" for each origin using temporary storage. Once the global limit for temporary storage is reached (more on the limit later), we try to find all currently unused origins (i.e., ones with no tabs/apps open that are keeping open datastores). These are then sorted according to "last access time." The least recently used origins are then deleted until there's enough space to fulfill the request that triggered this origin eviction.
Now the question: do browsers use whether a site has been added to the homescreen (A2H) as a signal to defer clearing the cache storage for a given site? To me it would seem logical for a browser to prioritize purging the caches of least-visited non-A2H site caches before starting to purge the caches of sites that a user has explicitly given the special A2H designation.
Question originally asked in the context of the PWA feature plugin for WordPress.
...ANSWER
Answered 2020-Mar-31 at 13:52I'm not aware of "add to home screen" being used as a signal when determining whether or not to clear an origin's storage when a device is running out of space. I wouldn't rely on it one way or another.
Instead, there's a web platform feature known as "Persistent Storage" that you can use to explicitly request that your origin's storage not be purged due to space constraints. That's something you could rely on with greater certainty. From that article:
Beginning with Chrome 55, Chrome will automatically grant the persistence permission if any of the following are true:
- The site is bookmarked (and the user has 5 or less bookmarks)
- The site has high site engagement
- The site has been added to home screen
- The site has push notifications enabled
The permission is automatically denied in all other cases. The goal is to ensure that users can rely on their favorite web apps and not find they have suddenly been cleared.
You'd use it like:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pwa-wp
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page