Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Smallest jQuery lightbox script

What's the smallest lightbox plugin for jQuery (in terms of size)? Something close to Fancybox, but smaller :)

like image 915
Alex Avatar asked Jan 11 '11 03:01

Alex


3 Answers

I wrote a low-level jQuery lightbox script called Nitelite: https://github.com/premasagar/nitelite (it's 1.4KB when minified and gzipped)

It is the kind of thing that can be either used on its own, or to build more feature-rich lightbox plugins.

It's been used in production on a couple of projects:

  • the BBC World Service widget (click a news article): http://www.bbc.co.uk/persian/services/2009/05/090512_pm_widget_conditions.shtml
  • the MiShorts widget (click a film thumbnail): http://www.mishorts.com/widget

It's open source, MIT license. Enjoy ;)

like image 61
Prem Avatar answered Nov 12 '22 09:11

Prem


I have used this sometime ...

http://www.digitalia.be/software/slimbox2

It's only 4K .

like image 1
andrea Avatar answered Nov 12 '22 11:11

andrea


As Yi Jiang already stated, the "smallest" depends completely on your specific needs, if you want everything that Fancybox does, I hardly doubt that there's a way around using that very plugin.

Still you could take a look at others and see whether they fit your needs, you should check out this list of lightbox scripts, many of which are smaller in size than Fancybox, but you'll still have to evaluate them and see if they fit your needs.

And last but not least you can always write your own one by reading a tutorial. That is, if you want to write your own one. But then again, if you have such specific needs you should know that nobody will come along and write some code for you for free.

like image 1
Ivo Wetzel Avatar answered Nov 12 '22 09:11

Ivo Wetzel