Screen Stay Awake
Screen Stay Awake prevents your website visitor's screen from turning off. The Screen Wake Lock API is used and no visitor prompt is required.
Plugin info
Maintenance & Compatibility
Maintenance score
Stale • Last updated 265 days ago • 5 reviews
Is Screen Stay Awake abandoned?
Likely maintained (last update 265 days ago).
Compatibility
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Description
Screen Stay Awake sends a request to your visitor’s browser asking it to keep their device’s screen on and prevent locking. This happens in the background and no user prompt is required. Screen Stay Awake is important for recipe websites and other how-to, informational websites. In these cases a visitor may go long periods without interacting with your site but still want to be able to read your content.
To accomplish this, Screen Stay Awake uses the Screen Wake Lock browser API. The request is sent on page load. Some browsers, such as iOS Safari, require the user to interact with your site prior to honoring the wake lock request. In these cases, Screen Stay Awake will also request the screen stay on after clicks, touches, and scrolls.
For information on browser support, please view the WakeLock: request() Documentation
Installation
Frequently Asked Questions
The Screen Stay Awake script can be excluded by post type, archive type, and on 404 pages using the plugin settings.
If you need customized logic, you can use the filter scrnsa_stayawake_should_enqueue to determine if the script should enqueue. Return a boolean value based on your logic and the script will either enqueue or not.
Review feed
Changelog
1.0.5
- WordPress 6.8 support
1.0.4
- Support for WordPress 6.7
- Adds localization support
1.0.3
- Adds the ability to disable script on post types, archives, and 404 pages
