Hi all. I threw out this Tweet into the Twitterverse, but thought it would be wise to ask for help here as well.
Hi @gatsbyjs/@Netlify peeps. I've run the @____lighthouse audit,and the score is 🔥, but I'm wondering about assets being served over HTTP/1.1.I know Netlify OOTB serves HTTP 2,so do I need to generate and inject entries into netlify.toml for my my build or is there a better way? pic.twitter.com/zUklzrxQ1O— Nick Taylor (he/him) (@nickytonline) January 29, 2019
I have a Gatsby site deployed to Netlify, and some of my assets are being served over HTTP/1.1. I know that Netlify supports HTTP/2 by default for sites enabled with HTTP2.
I know that I need to add entries into my
/ Link: </js/example-script.js>; rel=preload; as=script Link: </css/example-style.css>; rel=preload; as=style
but it would be a pain to update this after every deploy. Is anyone aware of a gatsby plugin that might do this, or how do you go about handling this with your Gatsby site when hosted on Netlify?
I can probably generate the
file as part of my build process, but my gut tells me someone has already done this 😉
The source code is here if anyone is interested.