Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Natural Gallery JS to v10.0.1 #38

Open
PowerKiKi opened this issue Nov 8, 2024 · 1 comment
Open

Upgrade Natural Gallery JS to v10.0.1 #38

PowerKiKi opened this issue Nov 8, 2024 · 1 comment

Comments

@PowerKiKi
Copy link
Member

PowerKiKi commented Nov 8, 2024

In the past 7 years, Natural Gallery JS changed a lot. It moved to a pure ESM package. The overall size was reduced. New features are available. And overall it matured quite a bit.

It seems like a good time to upgrade Natural Gallery JS, while also upgrading this extension for the next TYPO3.

@fabarea, @Lebeau09 is it something you could include in your current work ?

@sambaptista, can you confirm it is a good idea ?

@sambaptista
Copy link
Member

sambaptista commented Nov 9, 2024

Obviously, the last version is way more modern and complete. A total refactor has been done since then.

Appart from technical details, optimisations and probably unused new features in typo3, there is a new one that change drastically the user experience.

By the time, the gallery was requiring the complete collection of images with dimensions. This was forcing typo to generate all images of a collection, freezing the page during many seconds and stressing the server.

The new gallery autonomously decides what images it requires and asks the parent for the relevant images on infinite scroll mode. The required images are displayed or buffered and lazy loaded relatively to their situation and user behavior. The server only generated the thumbnails on request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants