I am writing a Blazor Progressive Webapp using Syncfusion controls.If the progressive webapp is Offline when a component is first loaded the application crashes because it cannot find the javascript file that the component needs.
If the user has used the component while online and then later goes offline the component works correctly as the JavaScript is cached.
However, some controls only appear on a single page somehwere in the app. (e.g. the ColorPicker) and so it's quite likely that they will not get used until later (when the app may be offline).
How can I force all these JavaScript files to be downloaded up front so that the application doesn't crash later when looking for them if it has gone offline?