#Lazy loading astro-integration-lottie

3 messages · Page 1 of 1 (latest)

supple lichen
#

I'm using the astro-integration-lottie but noticing that there is a lot of blocking time on the main thread from it

Is there any way I can lazy load it or defer the loading until the other main thread work is done?

restive steppeBOT
#

Hi @supple lichen. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Hmm, I don't know enough to give you a confident answer yet. The knowledge sources provided do not contain specific information about lazy loading the astro-integration-lottie. However, Astro does support lazy loading in general, and there are ways to optimize the loading of third-party scripts using tools like Partytown, as mentioned in the Astro Partytown integration guide (https://docs.astro.build/en/guides/integrations-guide/partytown#_top).

For more specific guidance on how to implement lazy loading with astro-integration-lottie, I would recommend checking the official documentation or reaching out to the Astro community for support.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: