Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[website] SEO and load time optimization #648

Merged
merged 7 commits into from
Jul 29, 2024

Conversation

WojciechBarczynski
Copy link
Member

@WojciechBarczynski WojciechBarczynski commented Jul 26, 2024

Change list:

  • Added robots.txt to specify permissions for website crawlers. I allowed unrestricted access to the whole content of the website.
  • Changed .png and .jpeg images to .webp format. .webp offers similar quality with significantly reduced size. It improved website loading and responsiveness times by around 30-40%.
  • Added metadata tags that are used by crawlers. They appear in the HTML head. In docosaurus you can specify additional content of the metadata section in the themeConfig
  • Switched to a single H1 header. Other sections headers were changed to H2 and subtitles to H3. I adjusted font sizes to match font sizes before this change and slightly increased (2.0rem -> 2.25rem) font size in the hero title section. All 5 SEO checkers I used recommended doing that.

Things recommended by SEO checkers I didn't implement (I didn't include everything):

  • Removing repeating header content across pages. We repeat some headers in docs, like Static positioning, but it makes sense and makes docs coherent/readable, so I didn't change that.
  • Some security recommendations, like using HSTS. I think this is configurable on the deployment level.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New clippy

@WojciechBarczynski WojciechBarczynski linked an issue Jul 28, 2024 that may be closed by this pull request
Copy link
Member

@wkozyra95 wkozyra95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you open PR for review, please add some description what are the changes and why

docs/src/pages/index.tsx Outdated Show resolved Hide resolved
@WojciechBarczynski WojciechBarczynski marked this pull request as ready for review July 29, 2024 11:25
@WojciechBarczynski
Copy link
Member Author

I deployed the website from the branch using GH Actions workflow dispatch (GUI). You can test it: https://compositor.live/

@WojciechBarczynski WojciechBarczynski merged commit 40a18b3 into master Jul 29, 2024
3 checks passed
@WojciechBarczynski WojciechBarczynski deleted the @WojciechBarczynski/seo branch July 29, 2024 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[website] Improve loading time and SEO
2 participants