Page with script
Demo showing how to load JavaScript in a static server-side rendering page.
This is specifically for static server-side rendering pages where you want to include JavaScript that runs on page load and is appropriate for enhanced navigation.
Full information can be found on the Microsoft site.
How it works
This page is using AOS (Animate On Scroll) javascript library to demonstrate the PageScript functionality.
Bundle the AOS JavaScript file into the wwwroot folder of the Presentation.Shared project, then load it from the page using the PageScript component and invoke AOS.init() once the script has been loaded.