Load icons postLCP #2325
Closed
ryanmparrish
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I have a draft PR that moves our loadIcons() function to postLCP and I am opening this discussion to see if this is needed and viable or if we need to re-factor this task and requirements [3]. Here are the details.
We/I initially thought this change would improve our page load LCP, however the impact appears to be marginal and it actually introduces some complex CLS issue since the icon DOM area size scales based on the relative font size it's relative to.
My gut tells me this is one step forward and two steps back.
I had done some previous work on expanding out icon set w/ the full S1 and S2 icon sets. [https://rparrish-icons-libs--milo--adobecom.hlx.page/drafts/rparrish/icon/icons-libs], however this task got put on hold when ran into a CORS issue w/ consuming site and I was going to wait for milo to adopt HLX5 to address this, this actual adoption HLX5 timeline is pretty far out still and after some conversations w/ @mokimo - The suggested direction was to tackle this from the federal repo for all consuming sites to use.
Beta Was this translation helpful? Give feedback.
All reactions