Skip to content

Regarding LCP issue with Image an Video( Flynt) #563

Answered by aaronmeder
rajpatel2435 asked this question in Q&A
Discussion options

You must be logged in to vote

@rajpatel2435

Some points I am seeing on the page you could improve regarding the loading of images:

  • Images that aren't visible in the initial viewport should be lazy loaded. You can use "lazysizes" that comes included with default Flynt (see a reference implementation in BlockImage) or have a look at the lazysizes documentation. Or alternatively use the native loading="lazy" attribute on the img tags (see docs).
  • You could also inline the svgs instead of using img tags (e.g. for all icons). Has the downside of increasing the DOM size and maybe DOM depth; so be sure to check which one performs better.
  • Some images are loaded which aren't visible to me at all (e.g. trophy3.png) - make sure …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@aaronmeder
Comment options

Answer selected by timohubois
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants