Whenever a Javscript library throws a ton of inline !important css just to get their shit to look good, I'm like "now what am I supposed to do to make it look how I want it to look? To behave how I want it to behave? STOP IT!"
I don't care how sweet and lightweight your widget is if it doesn't do what I'm looking for, so put the demo up front!!
At least this one actually has a demo. Sorry for the rant, pet peeve of mine. Otherwise, looks nice.
Chrome should give you a stack trace for that. Look for patterns: in my experience, that generally shows up when there's a mutual unterminated recursion, e.g. "A calls B, B calls A, A calls B, ..." or "A calls B calls C calls A calls B calls C ...".
I'm using jQuery 1.9.1 and Twitter Bootstrap. On a whim, I looked at your example code and noticed you were using Zepto. I tried switching to Zepto, and this fixed the issue with your gallery, and it closed properly. However, it breaks Bootstrap.
Did you only test with Zepto? There might be an issue in jQuery, where you're selecting elements incorrectly, thus spawning too many events.
(Responsive as in "responds quickly"... Is it to late to ask the internet to stop saying Responsive when talking about Adjustive design that scales according to window size or device?)
By the way, here is a good discussion related to "responsive" term - http://stackoverflow.com/questions/14831530/responsive-desig...
EDIT: I don't know how I originally missed the breakdown of why it's better at the top of the demo page. My apologies! :)
http://dimsemenov.com/plugins/magnific-popup/
Also, be sure to check my article on the Smashing Magazine that explains how this plugin was made - http://coding.smashingmagazine.com/2013/05/02/truly-responsi...
I don't think that it's possible to launch fullscreen YouTube video player in mobile Safari by just clicking on link.
Maybe we should just link directly to the video (not to video page), like so: http://www.youtube.com/embed/PZvi11Yy9r8
This should be tested on real users for a while to see which option is best.
Sort of a little mini-window effect?
I've hacked that together for other modal/popup implementations before, and it works pretty well for simple interactions. But I'm starting to get weary of re-implementing it on the next new better modal/popup implementation, heh.
Just me?
Thanks for sharing!