Polymer/prpl-server

Headers | link: rel=modulepreload support/capability

patriciatrauman opened this issue · 1 comments

So far, all link are set as rel=preload.
It could be useful to choose if we want preload or modulepreload.
So the browser wouldn't load twice a module file and avoid this kind of warning
Screenshot 2021-06-18 at 15 47 59

To do so, we could add an optional argument to push-manifest.json.
This could be implemented in https://github.com/Polymer/prpl-server/blob/master/src/push.ts

Here is a possible implementation :
Screenshot 2021-06-18 at 15 09 46
Screenshot 2021-06-18 at 15 10 03
Screenshot 2021-06-18 at 15 10 26
Screenshot 2021-06-18 at 15 13 28
Screenshot 2021-06-18 at 15 10 43

@aomarks
What do you think ? Does it make sense ?

references :
https://developers.google.com/web/updates/2017/12/modulepreload
https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types/modulepreload

Thank you for the feature request. Closing because we are no longer accepting new feature requests for prpl-server.

See https://github.com/Polymer/prpl-server#prpl-server for our recently added maintenance mode notice, and recommendations for alternatives.