First of all, thank you for creating and maintaining this package!
In my use case, I found that the "idle" load strategy works more reliably than the default "visible" strategy, especially when handling modals on complex pages.
This PR introduces a loadStrategy() option, allowing users to customize the load strategy to suit their needs, rather than relying on the hardcoded default.
To ensure backward compatibility, the default strategy remains "visible", so no breaking changes are introduced.
First of all, thank you for creating and maintaining this package!
In my use case, I found that the "idle" load strategy works more reliably than the default "visible" strategy, especially when handling modals on complex pages.
This PR introduces a
loadStrategy()
option, allowing users to customize the load strategy to suit their needs, rather than relying on the hardcoded default.To ensure backward compatibility, the default strategy remains "visible", so no breaking changes are introduced.