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

Migrate to Preact/Vite for better performance #20

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Razboy20
Copy link

@Razboy20 Razboy20 commented Sep 4, 2023

Additionally optimized images and youtube embed.

Functionally, the page works exactly the same, except it should (and does) perform better. Vite should also make it easier to work with building and working on the code.

Currently the one problem is that I didn't migrate any of the types, so there are a lot of "react" type errors saying that stuff doesn't exist.

@Razboy20
Copy link
Author

Razboy20 commented Sep 4, 2023

Optimized images size comparison:

Unoptimized (non-webp):
image

Optimized (webp):
image

There is no perceptual difference between the optimized versions and the .png/original versions. I left a couple as png's as they were small enough to not matter, and for those I could notice some difference so I left them as-is.

Copy link
Contributor

@vishalkantharaju vishalkantharaju left a comment

Choose a reason for hiding this comment

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

Overall really impressive! Just one small nitpick- as I mentioned earlier, the YouTube video requires 2 clicks to play on Safari. No worries if you don't want to go about debugging this though, you've already done some really cool stuff, and Tanay and I could probably debug when we get a chance too. 👍

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.

2 participants