DEV Community

Piotr Zdziarski
Piotr Zdziarski

Posted on

2

Major changes in Vanilla Javascript Fullscreen Lightbox!

Large update for Vanilla Javascript version.

We've had really big problems with scaling Vanilla JS version so we've decided to refactor it completely. Now it's designed a lot better and it's much more scalable!

Total size of pro version was decreased from 64KB to about 50KB!
Basic version from 34KB to about 29KB!

New features:

  • Added updateFsLightbox() global function that detect new lightboxes or updates existing ones.
  • Simplified adding Fullscreen Lightbox to webisite, now it's only js file.
  • Custom sources, displaying anything you want, e.g. Google Maps, Iframes.
  • Changed way of adding Vimeo videos, now you can do it via custom sources.
  • Resolve CORS issues with automatic type detection via manually setting type (data-type attribute).
  • Changed way of listening for events.

Check it out: https://fslightbox.com/javascript

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more