Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace XMLHttpRequest with fetch to hook on cache #23

Open
Tewr opened this issue Jul 30, 2020 · 1 comment
Open

Replace XMLHttpRequest with fetch to hook on cache #23

Tewr opened this issue Jul 30, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@Tewr
Copy link
Owner

Tewr commented Jul 30, 2020

The following code mirrors an old version of the blazor assembly loader

return new Promise((resolve, reject) => {

The "new" (3.2.0?) version of blazor uses resource caching with fetch (service worker?), this should be mirrored in BlazorWorker to take advantage of request caching, has the potential to speed up worker initialization down to 0 requests for most cases.

not sure if practically feasable to hook on to the cache used here: https://github.com/dotnet/aspnetcore/blob/7a9707eb98c9e82d2fdbc25de541bf60d4bb46ca/src/Components/Web.JS/src/Platform/WebAssemblyResourceLoader.ts#L77 but certainly worth an investigation

@Tewr Tewr added the enhancement New feature or request label Jul 30, 2020
@Tewr Tewr changed the title Replace XMLHttpRequest with fetch Replace XMLHttpRequest with fetch to hook on cache Jul 30, 2020
@Tewr
Copy link
Owner Author

Tewr commented Aug 27, 2021

This part should also profit from a build-time created list of assembly-dll maps, to avoid problems like the ones in #64

@Tewr Tewr mentioned this issue Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant