chapterOpened

open suspend fun chapterOpened(chapter: Int)(source)

The reader reached a page of chapter: run its scripts, the first time only, then fire DOMContentLoaded and load. A viewer calls this for a chapter that EpubDocument.isScripted says has scripts.