Audio device warm-up
Create a sound device at the first touch, stop for 0.3~0.4 seconds, make it pre-make at home, and wake up when pressing the game card to stop the first touch · eliminate the first sound delay.
- Category
- Optimization techniques
Technical terms · AudioContext warm-up (resume on user gesture) · Autoplay policy · AudioContext.state (suspended · running) · requestIdleCallback