Example of bug in .NET 8 RC2 loading js script tags
This example project tries to use <script>...</script> tags within the body content of a .razor page. .NET 8 RC1 allowed this. However, RC2 seems to ignore the <script> tags within the body even thought they are present in the DOM after blazor renders the page.
Instructions. Remove the following line from Index.razor:
<script src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script>
and place it in /wwwroot/index.html
(after <script src="_framework/blazor.webview.js" autostart="false"></script>
)
That will enable the icon in Index.razor to work:
This introduces tremendous limitations as many javascript libraries need to be loaded after the body content has loaded. For example, a page with selectors that needs to apply attributes from javascript after the dom is loaded. This breaks the majority of our solution as-is.