
✨ Webdev & Webperf Consultancy 🏝️ Frontend @slevomat 🎨 @stylifycss ➡️ @signalizejs 🏢 https://xitter.cf/t.co/fT1u0eN5FQ ⏩ https://xitter.cf/t.co/na0o83SuNA
Prague
Joined January 2015
- Tweets666
- Following96
- Followers2.4K
- Likes645
Pinned Tweet
Webperformance in a nutshell:
🚀Images: Lazyloading, Importance, Decoding
🚀Picture tag: Proper sizes, WebP/Avif format
🚀No layout shifts, fast LCP
🚀Added preloads/prefetches
🚀Font-display:swap for fonts
🚀Optimized content-visibility
🚀Minified and self-hosted resources
Want to make your web app pages loading effect smooth?🚀
Add this into your head tag and just sit and watch.
#css #html #javascript #WordPress #php #laravel #symfony
Tip #webperf:
Do not animate LCP elements. Even through CSS. It's going to make the score worse.
debugbear.com/blog/opacity-a…
#html #css #javascript #webdevelopment
Tip #webperf INP:
Interaction is measured even before JS is fully loaded. If you have some buttons for example for toggling/hiding something, you might want to use:
CSS switches tabatkins.github.io/css-togg…
Details element developer.mozilla.org/en-US/…
They work without #javascript
Vladimír Macháček retweeted
✨Hello World! ✨
First version of the SignalizeJS have been released!
👉 signalizejs.com
#signalizejs #html #css #javascript #webdevelopment #web #webdev
Tip #webperf:
Have you heard about ResizeObserver?
You might want to use it instead of the 'resize' listener.
developer.mozilla.org/en-US/…
#javascript #css #html #vuejs #reactjs
Vladimír Macháček retweeted
Ok, let's get this party started!
A couple weeks ago I said I was publishing the most important thing I ever wrote. I was wrong.
Documentation related to the Google Search algorithm leaked and I spent the weekend tearing it apart.
ipullrank.com/google-algo-le…
✌🏾
🔥Webperf tip:
Have a large dom?
Prerender your templates into the <template /> element and render it, when it needs to be rendered
Great for things like:
✅Dropdowns
✅Dialogs
✅Toggable things
✅Non visible content in the carousel
...
#html #javascript #react #vue #php
This can also improve the INP metric because the dom doesn't take that long to process.
You can define reusable components in modern frameworks to simplify this process.
Example with #nette latte templating engine. you can do the same in #laravel,#symfony
#webperf #javascript
Tip #javascript for Mutation Observer:
For tracking added nodes, you might want to first find all "removed nodes".
During drag and drop or order change, added node is also in removed nodes
That element is not removed, neither listeners are removed
You can basically skip them
If you add new event listeners to such element, they are going to be added/triggered twice.
#javascript
🔥 Webperf tip
Global event handlers like
document.addEventListener('click', ...)
are evil.
🔥Don't use them unless it's the only solution. They can easily add 100ms+ to any interaction.
🔥Makes INP score much worse.
#webperf #webdev #javascript #reactjs #vuejs
🔥 Webperf tips - Case Study
✅How to fix blocking head tag
✅How to improve INP
✅Carousel (like slick) loading tips
✅Modern dialog libraries alternative
✅Others
youtube.com/watch?v=HB85upkD…
#webperf #webperformance #javascript #html #css #php #reactjs #laravel #vuejs #webdev
Vladimír Macháček retweeted
It seems it wasn’t a bug 😡
🔥Apple may remove PWA support for European users, a feature launched by Steve Jobs in 2008.
👉It also means no Web Push.
⚠️Installed PWAs may lose their storage and will render a dialog saying “it will open from your default browser from now on”
🔥 INP #webperf tip:
Limit global event listeners such as document.addEventListener('click'...)
They often trigger when they shouldn't.
If you need to use it for things like clickOutsideListener add that listener only, if some dropdown opens and then remove it
#javascript
Vladimír Macháček retweeted
SEO News: Google has now launched discount rich results for organic listings in the US. The new rich result type makes your snippet larger – allowing shoppers to copy coupon codes directly from search results. More details & history: brodieclark.com/notes/?query…
🧵Vlákno
Už jste viděli kód rychlokvašky prihlaskynastredni.cz od Cermatu a @msmtcr?
Je někde cena, kolik to stálo @HlidacStatu?
- Cookie lišta neexistuje. Cookies ano.
- Velikost > 6 MB
- 100+ requestů po načtení
- .hezkyčesky { color:meh }
- přístupnost🙂🔫
#web #msmt


















