You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One way to do that is when SSRing gatsby-image capture this and add some code to the <head> which can trigger the preloading.
The tricky part here is that the browser doesn't natively handle preloading/prefetching images that use srcset like gatsby-image does.
So we'd need to embed some code (as outlined in my RFC gatsbyjs/rfcs#35) that would take a srcset and pick the right image based on the browser screen size / resolution to preload.
The text was updated successfully, but these errors were encountered:
@baobabKoodaa noticed that critical images can be blocked on slower connections by loading JavaScript. We should prioritize loading critical images (and fonts) over loading JS as the above-the-fold content needs to be loaded before we worry about making it interactive.
One way to do that is when SSRing
gatsby-image
capture this and add some code to the<head>
which can trigger the preloading.The tricky part here is that the browser doesn't natively handle preloading/prefetching images that use
srcset
like gatsby-image does.So we'd need to embed some code (as outlined in my RFC gatsbyjs/rfcs#35) that would take a srcset and pick the right image based on the browser screen size / resolution to preload.
The text was updated successfully, but these errors were encountered: