Screen Stay Awake

설명

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

스크린샷

FAQ

Can I disable Screen Stay Awake on some pages?

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.

후기

2026년 1월 20일
I needed something like this and tried a few different solutions. This was the one that worked best for my needs.
2025년 12월 2일
I have several sites but, in particular, I was wanting the WPRM (WordPress Recipe Maker) plugin owner to set his “Keep Screen Active” feature to default at “enabled” but he never would. So, I thoroughly tested this “Screen Stay Awake” plugin with no hits on my PSI performance metrics. After that, I was then able to remove the “Keep Screen Active” feature from the WPRM recipe plugin template (which helped a small amount on performance metrics). I also liked the simple easy-to-use settings so I could disable it everywhere else except on just my posts, which is where all the recipes are. So, DarnGoodRecipes thanks you for this plugin creation and it’s also used alongside this author’s Ad Commander Pro plugin with zero issues.
2024년 11월 25일
Thanks for this singular feature plugin. Saved me from having to buy a premium recipe plugin for a family recipe site. Appreciated!
2024년 11월 4일 답글 1개
I am thrilled this plugin has been made! I had been trying to implement NoSleep JS on my own and it was a struggle. Took a break from it and found out someone created this plugin that does exactly what I need. I’m so grateful!
모든 6 평가 읽기

기여자 & 개발자

“Screen Stay Awake”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Screen Stay Awake”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.0.6

  • WordPress 7.0 support
  • Update vendor packages

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