Decouple lottie-web
in onboarding components
#6201
Labels
area: plg ✨
Product-led growth, includes novice to pro
dependencies
Pull requests that update a dependency file
role: dev
Milestone
Follow up to #3959.
The original issue was to investigate issues with tree shaking. In our initial review, we weren’t able to replicate the issue where
lottie-web
was not being shaken, but we’ve continued to see reports of inflated builds1.The problem
Adopters of our library would like to leverage our package without inflated bundle sizes that have resulted from the inclusion of
lottie-web
as a dependency. In some cases,lottie-web
remains even after tree-shaking, which has resulted in developers taking a more fragile approach to preventing it from being bundled2.More recently, we’ve seen additional contributions3 which include Lottie animations. Before we introduce these new patterns, we’d like to explore new ways to allow our components and library to support these animations while reducing the overhead, risk, and performance issues passed on to our consuming teams.
Solution
In a basic way, decoupling
lottie-web
from the set of onboarding components — however, this poses some risk to teams that may already be consuming them using Lottie animations. In recent reviews of our telemetry,Coachmark
s andInterstitialScreen
are known to be among the higher used onboarding components, however, they are still considered experimental/preview components.Currently,
lottie-web
is imported inSteppedAnimatedMedia
which is in turn used inCoachmarkOverlayElements
CoachmarkStack
InlineTip
InterstitialScreen
All of these components accept a
media
prop which will leverage theSteppedAnimatedMedia
when passedfilePaths
.Tasks
media
prop #6243lottie-web
andSteppedAnimatedMedia
in 1H2025 #6434Footnotes
Kindly documented by @Mikadv: https://ibm-studios.slack.com/archives/C013ZTX0N6B/p1725456070249159?thread_ts=1725374600.890359&cid=C013ZTX0N6B ↩
Also from @asfordmatt: https://ibm-studios.slack.com/archives/C013ZTX0N6B/p1725983300345619?thread_ts=1725374600.890359&cid=C013ZTX0N6B ↩
Animated headers from @glapadre @mikeolasov @marion-bruells ↩
The text was updated successfully, but these errors were encountered: