From what I read on the net in order to include js script in a page (Web Assembly version of MAUI Blazor) I need to do it in wwwroot/index.html using standard 'script' tag.
Then I access js methods from any razor page through JSinterop. It works fine. I can call js and call C# methods from js also.
I have many pages in the app though.
Wondering how to load different js scripts depending on page that is currently on the screen?
I cannot add js using 'script' tag on a razor page itself as it doesn't allow it and don't want to have one global js script with loads of methods supporting all pages I have in the app.
Any help will be greatly appreciated.