Context
Context. A checkout, a course player or a form engine is real weight that a content page should not download. Build it as its own bundle, and load it only where it is used. Two rules apply to every script tag on the platform: it carries the nonce, or the Content Security Policy refuses it with no mark on the page, and its URL carries the deploy hash, or returning visitors keep the old file. A component should not print its own script tag mid-page; it queues the URL, and the base template prints the queue in one place.