Yeah, there really needs to be a "Preact" for lottie-web given the runtime costs. I could see the argument for using it on desktop. Per the fallback for slow networks think SVG or an alternative is a better fit for constrained devices.
-
-
Replying to @addyosmani @ElliottZ
There is technically a "light" version, but IIRC it's 45kb instead of 65kb gzipped, and that doesn't address the JSON bit.
2 replies 0 retweets 4 likes -
/cc
@flackrw2 replies 0 retweets 0 likes -
Replying to @slightlylate @_developit and
My question is basically "is it worth it", even on desktop. ex. You want a spinning star when a user favorites something. An SVG with a CSS anim to make it spin (or using web anim API) is small and probably gets you the same business metric impact as Lottie+slightly fancier anim
3 replies 0 retweets 1 like -
Replying to @ElliottZ @slightlylate and
Curious you mentioned small - but I think standardizing complex SVG animations (for example) requires a lot more code in the browser than a focused web library.
1 reply 0 retweets 0 likes -
Replying to @flackrw @slightlylate and
I think one issue is that it doesn't target the web's capabilities directly, it targets a cross platform json & feature set. High abstraction systems like that work better on native where users pre-download 50MB+ apps from a store (on wifi hopefully). A browser is pre-downloaded.
1 reply 0 retweets 2 likes -
Replying to @ElliottZ @slightlylate and
What if you didn't have to redownload lottie for each site that used it if it were widely used - much like you download a system library once? I'm hoping that Web Shared Libraries can allow developers to build an ecosystem of high quality readily available libraries.
2 replies 0 retweets 0 likes -
Lottie isn't used nearly enough to qualify tho, right?
1 reply 0 retweets 0 likes -
-
So not a solution for the forseeable future. I agree with
@ElliottZ that we can't afford the current crop of tools. Work to get them to be more web-native seems promising.1 reply 0 retweets 0 likes
The whole frontend ecosystem is deluded about what it can afford right now. Maybe if we had a tool that did static SVG until/unless we knew the JS was cheap to fetch (e.g., only to a worklet & only from a SW cache)?
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.