SQLpage
SQLpage copied to clipboard
feat: add lazy component
Hi 👋,
I'm working with some resource-intensive queries that take some time to execute, and the embed
option on the card
component works really well. However, I’d like to prevent layout shifts and avoid having cards nested inside other cards.
The lazy
component follows a similar logic but provides an element you can style before it's replaced with the actual content.
Please feel free to make any changes, rename the component (coming from React/Solid, that's what comes naturally to me), or guide me in the right direction.
If you like this implementation, I'd be happy to add it to the documentation.