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

Static Website Pre-Rendered at build #169

Open
wants to merge 42 commits into
base: master
Choose a base branch
from

Conversation

LordKa0S
Copy link

@LordKa0S LordKa0S commented Jul 18, 2021

Live

Why

This site makes a pretty good argument for static sites. Further, costs are reduced with no server-side execution. The webpack build ensures that only the necessary assets are exposed (example exposed asset on the current site).

The Good

Site feels much snappier, and is confirmed by PageSpeed Insights and web.dev Measure. Below are the results comparing the news page, which has the most content:

Mobile

Current

image

Proposed

image

Desktop

Current

image

Proposed

image

The Bad

So far, I've found only one issue: on both desktop and mobile, the menu section is not exactly the same as the current site.

  • On desktop, the menu items are slightly closer together.
  • On mobile, they don't flex into multiline when width is decreased.

I've tried comparing diffs of the stylesheet and the markup after they've loaded into the browser, and they seem to be exactly the same. If someone finds out what's changed, feel free to let me know in the comments.

Update: Fixed in 864a426

Disclaimer

I know that this is an attempt at solving a non-issue. I stumbled across this repo browsing for a BitTorrent client for my device, and found the complexity to be just enough for me to have a go at what I believe to be improvements. That said, I completely understand if the contributors to this project are not comfortable with the complete architecture change I'm proposing. I'd appreciate constructive review of my changes, even if they're not ultimately merged.

(cherry picked from commit ced7354)
(cherry picked from commit 80c8226)
(cherry picked from commit eff4589)
(cherry picked from commit bb12693)
(cherry picked from commit 7a1afec)
(cherry picked from commit f140eba)
(cherry picked from commit 97f8fe3)
(cherry picked from commit 3033cb5)
(cherry picked from commit d7a976f)
(cherry picked from commit ec4427b)
(cherry picked from commit f88f4ab)
(cherry picked from commit 0825950)
(cherry picked from commit 42f07aa)
(cherry picked from commit 62fa5af)
(cherry picked from commit 2dc2968)
(cherry picked from commit 2025689)
(cherry picked from commit a4d51aa)
(cherry picked from commit 6ba72e0)
(cherry picked from commit 2832bb2)
(cherry picked from commit 442951c)
(cherry picked from commit f243f86)
(cherry picked from commit 243f2d9)
base href was needed on LordKa0S/master for github pages host,
unnecessary on qbittorrent/master
@Poopooracoocoo
Copy link
Contributor

@Chocobo1 have you seen this?

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.

None yet

2 participants