nuxt-booster
nuxt-booster copied to clipboard
Chrome Energy Saver Mode Problem
Describe the bug Javascript not executing when Chrome Energy Saver Mode is active.
To Reproduce Steps to reproduce the behavior:
- Go to 'Chrome Settings and find Power section. enable Turn on when my computer is unplugged option.'
- Unplug power cable from your notebook
- Refresh nuxt page and find any of executable js method (@click, @blur or anything else)
- See no action
Expected behavior On energy saver mode js methods should run
Desktop (please complete the following information):
- OS: [e.g. MacOS]
- Browser [e.g. chrome]
Any of js executable methods, plugins not loaded when speedkit is active on energy saver mode. If i disable nuxt-speedkit everything run as expected.
Hello @vskavgaci ,
Thanks for the hint 🙂
This shows that the check in the speedkit is selected correctly. Reason for the blocking, are the reduced FPS in Energy Saver Mode. https://developer.chrome.com/blog/memory-and-energy-saver-mode/#energy-saver-mode
This would be another case for the SpeedkitLayer to tell the user that he is in Energy Saver Mode and actively decides if he wants to load the energy consuming scripts.
This issue also affects Nuxt 2. It seems like hydration never happens if the user has Energy Save mode turned on.