Conversation
imrja8
force-pushed
the
perf/optimize-website-and-docs-images-to-WebP-format
branch
4 times, most recently
from
September 19, 2026 22:47
673abf3 to
7a7d885
Compare
imrja8
force-pushed
the
perf/optimize-website-and-docs-images-to-WebP-format
branch
from
September 19, 2026 22:58
7a7d885 to
ec31ce5
Compare
Author
|
@narcisonunez This pr is ready for review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
video.mp4
While the Dokploy website is already fast, images can sometimes lag behind the text on slower connections. Video demonstrating Dokploy website image slow load even with a 200mbps connection.
What does this PR do?
This PR optimizes the website and documentation by converting
.pngvisual assets to.webpand updating the corresponding codebase references.Images were converted using
cwebpwith maximum lossless compression (-lossless -z 9) to ensure 99.9% pixel-perfect original quality with zero visual degradation.Using WebP cuts the image payload significantly, ensuring visuals load much closer to the speed of the content. At Dokploy's scale, this also noticeably reduces server egress bandwidth, improves the Largest Contentful Paint (LCP), and prevents layout shifts.
Size Reductions
Overall, this permanently removes ~12.6 MB from the codebase.
/apps/website/public/apps/docs/publicAdditional Details
Hero.tsxandpricing-legacy.tsxto use a relative path (/banner.webp) instead of the absolute URL (https://dokploy.com/banner.png) so the hero banner resolves properly when testing locally or on preview deployments.og.png,apple-touch-icon.png,favicon.png) to keep platform fallback compatibility intact.Testing & Verification
Because there are over 130 images changed, I couldn't check every single page manually. Here is how I verified the changes:
.pngreferences were accidentally left behind in any.mdxor.tsxfiles.og.pngand favicon files were correctly ignored by the replacement script.pnpm run website:devandpnpm run docs:devand clicked through a few main pages to make sure everything loads correctly and there are no broken image links.