#polyfill
#Development #Launches
Scroll-timeline polyfill · If you can’t wait for cross-browser CSS Scroll-Driven Animations https://ilo.im/14zf49
_____
#WebDev #Frontend #CSS #JavaScript #Polyfill #ScrollDrivenAnimations
This is both awesome and cursed :awesome: 😬:
polywasm - a #JavaScript library that implements the #WebAssembly API and can act as a polyfill, if #WASM is not available.
Made by the creator of #esbuild evanw.
https://github.com/evanw/polywasm
I'm wondering, though, whether this is really needed, given that there is asm.js 🤔
Also see section "Can WebAssembly be polyfilled?" on the WebAssembly FAQ:
https://dev.to/jh3y/can-we-create-a-resize-hack-with-container-queries-3pe0 - `contain:` is amazing at handling #css based on size of the parent rather than the page. But what if we need to #polyfill it? Great explorations @jhey.
#Development #Introductions
Scrollend, a new JavaScript event · The reliable way to detect if a user scroll is complete https://ilo.im/10nxt8
_____
#WebDevelopment #WebDev #Frontend #JavaScript #EcmaScript #Scrollend #Event #ProgressiveEnhancement #Polyfill #UseCase
Just made a conclusion that avoiding #CSSinJS makes sense only for reset stylesheet, and even then you'd want to inject it via #JS Import Assert syntax (es-module-shims #polyfill). Embrace single-file #WebComponents, #KISS!
#WebComponents experience :underheart:
:sadness: Browsers don't have the same baseline styles.
:fatyoshi: 2 hours figuring out how to avoid #frameworks and #bundlers.
:AngeryCat: 3 hours of searching framework anyway, only to stumble upon options that either, like #LitElement, have minified bundle without #TS declaration or, like #StencilJS, require building.
:tinking: Ending up writing my own nano-framework with adoptedStyleSheets #polyfill.
GitHub - mfranzke/loading-attribute-polyfill: Fast and lightweight dependency-free vanilla JavaScript polyfill for native lazy loading / the awesome loading='lazy'-attribute.
https://github.com/mfranzke/loading-attribute-polyfill
Un polyfill pour l'attribut `loading="lazy"` des éléments images et iframe.
#html #polyfill #lazyloading — https://links.kalvn.net/?WjACyg