Best Practices for Developing Scripts for Books with JavaScript Interactivity

Apple Books supports JavaScript similarly to Safari. In books, JavaScript allows for features like drag and drop, and touch or mouse events to initiate audio or animation. However, scripts developed for books should take into account the following best practices: