-
-
Notifications
You must be signed in to change notification settings - Fork 17
feat: performance optimizations #551
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
base: main
Are you sure you want to change the base?
Conversation
|
Hi there! 👋 Thank you for your contribution to the FIP Guide! 🚀 Checklist before merging:
|
✅ Deploy Preview for fipguide ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Unfortunately, there is an error: Uncaught ReferenceError: PagefindUI is not defined. |
MoritzWeber0
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the effort to merge the pagefind styles 🚀
It's great if we no longer have to load thepagefind-ui CSS file :)
Unfortunately, there are a few styling issues when I run it locally, not sure if it's just my local preview that has those issues. I added comments for each issue that I found, sorry for the amount 😅
| <div class="o-startpage__image"> | ||
| {{ $image := resources.Get "images/startpage.webp" }} | ||
| {{ partial "image" (dict "image" $image "eager" true) }} | ||
| {{ partial "image" (dict "image" $image "eager" true "fetchpriority" "high") }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we want to have a high fetch priority for the start page image? In my opinion it's only decorative and should be loaded after other external resources like fonts, scripts and the operator logos or flags. So I'd set it to low or auto instead of high.
| ascent-override: 93%; | ||
| descent-override: 24%; | ||
| line-gap-override: 0%; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assets/sass/search.scss
Outdated
| // --------------------------------------------- | ||
| // SEARCH INPUT | ||
| // --------------------------------------------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good comments should not repeat the code. Since the class is named search-input, the comment doesn't provide any additional information. I assume it was added by Copilot (and Copilot loves adding comments), so I've removed it and the other comments.
Feel free to state your opinion if it doesn't match mine, then I can also add them back.
Here is a good read about best practices when writing comments: https://stackoverflow.blog/2021/12/23/best-practices-for-writing-code-comments/#h2-b7593c698a940
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the deployment preview, the search doesn't load anymore:
https://deploy-preview-551--fipguide.netlify.app/de/
Wanted to approve the other PR, I should get some sleep xD












I’ve experimented with some performance optimizations. Feel free to have a critical view. :)
fetchpriority=high