Skip to content

Commit c6755ac

Browse files
committed
Update Blazor WASM script loading and startup logic
Switched to a fingerprinted Blazor WebAssembly script for better cache management. Removed manual Blazor.start() call, as startup is now handled automatically by the new script reference.
1 parent d4ecbf8 commit c6755ac

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • BlazorBootstrap.Demo.WebAssembly/wwwroot

BlazorBootstrap.Demo.WebAssembly/wwwroot/index.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
</div>
4949
</div>
5050
</div>
51-
<script src="_framework/blazor.webassembly.js" autostart="false"></script>
51+
<script src="_framework/blazor.webassembly#[.{fingerprint}].js"></script>
5252
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/js/bootstrap.bundle.min.js" integrity="sha384-ndDqU0Gzau9qJ1lfW4pNLlhNTkCfHzAVBReH9diLvGRem5+R9g2FzA8ZGN954O5Q" crossorigin="anonymous"></script>
5353
<!-- Add chart.js reference if chart components are used in your application. -->
5454
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.4.1/chart.umd.js" integrity="sha512-ZwR1/gSZM3ai6vCdI+LVF1zSq/5HznD3ZSTk7kajkaj4D292NLuduDCO1c/NT8Id+jE58KYLKT7hXnbtryGmMg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
@@ -61,9 +61,6 @@
6161
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js" integrity="sha512-SkmBfuA2hqjzEVpmnMt/LINrjop3GKWqsuLSSB3e7iBmYK7JuWw4ldmmxwD9mdm2IRTTi0OxSAfEGvgEi0i2Kw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
6262
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/custom-class/prism-custom-class.min.js" integrity="sha512-7uKPAecn+SrAT5xVovlVdFCkXTM9LzNzjaK3yzb3ht22SwjnUTjWHNAp7dq3OPFmPb+DCAFjWnDT8Qrf256GeQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
6363
<script src="_content/BlazorBootstrap.Demo.RCL/js/blazorbootstrap.demo.rcl.js" asp-append-version="true"></script>
64-
<script>
65-
Blazor.start();
66-
</script>
6764
</body>
6865

6966
</html>

0 commit comments

Comments
 (0)