Reputation: 366
I want to push (HTTP/2 push, not push notification) manifest.json, is it okay? how should I declare it as? If it's image, usually as=image, css file as=style, for manifest.json?
Edit, to expand info, this is server push using Link
header. The reason I want to push is to make it quicker as it's always loaded late. Here's the screenshot for normal loading of manifest.json
Upvotes: 0
Views: 449
Reputation: 366
To preload JSON file, whether using html preload or header preload, the as
attribute is fetch
according to https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content#What_types_of_content_can_be_preloaded
Upvotes: 1