lity icon indicating copy to clipboard operation
lity copied to clipboard

Allow to close the box while loading if loading time too long

Open Cerdic opened this issue 4 years ago • 0 comments

When the loading time is too long (box trying to load an huge image on a slow network or slow ajax request whith a personal handler), the user is stuck in front of the dark loading box without any way to escape.

With the patch it is possible to close with the escape key as well as the close button while still loading. As a result the lity:ready is never fired (the seems to me better than faking a ready fire) and the lity:close is triggered on element instead of content.

When the content is finaly loaded, it is silently ignored.

Cerdic avatar Oct 09 '20 14:10 Cerdic