Improving image loading #8552
Labels
domain: performance
Related to bundle size or perf optimization
feature
This is not a bug or issue with Docusausus, per se. It is a feature request for the future.
status: needs more information
There is not enough information to take action on the issue.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.Description
This is not so much a bug as gathering useful points on image loading from the Hacker News discussion on https://johnnyreilly.com/2023/01/15/how-i-ruined-my-seo
https://news.ycombinator.com/item?id=34389421
The proposal is: for the first image in a post, we use
fetchpriority="high"as documented in @addyosmani's post. And possibly removeloading="lazy"for that image - although removing may not be necessaryReproducible demo
No response
Steps to reproduce
n/a
Expected behavior
n/a
Actual behavior
n/a
Your environment
Self-service
The text was updated successfully, but these errors were encountered: