We have enabled the experimental setting enable_experimental_lightbox
on Meta. This is part of our ongoing efforts to improve your user experience and introduce new features.
The Discourse Lightbox is a new feature we’re testing that aims to enhance the way images are displayed on the forum. This change is also part of our migration away from the Magnific Popup, and therefore jQuery.
Recap
(For more details, please visit Discourse Lightbox - Migrating away from Magnific popup)
The new lightbox supports keyboard shortcuts for common actions such as:
- M fullscreen mode
- R rotate image
- A open/close carousel
- Z zoom in/out
- D download image
- T open image in new tab
- → / ↓ next image
- ← / ↑ previous image
- Esc close lightbox
And here are some of the reasons why we are moving away from Magnific Popup:
- It has jQuery as a dependency
- It contains code meant for ancient browsers
- The average device used to access the web has changed a lot since then
- It was designed with something other than single-page applications like Discourse as a priority - namely, static pages.
How you can help us
We’d love to hear your feedback on this new feature. If you’re an admin and would like to try it out on your forum, you can turn on the enable_experimental_lightbox
setting. Please share your experiences, report any bugs, or provide any suggestions in this announcement topic. We will be collecting feedback until the end of September.
Our goal is to make this experimental feature the standard in October.
Thank you for your participation and for helping us make Discourse better!