-
Notifications
You must be signed in to change notification settings - Fork 4
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
just branding suggestion: consider rename to 'IFLI' #13
Comments
@jasomdotnet Thanks for the suggestions and proposals. IFLI is short but isnot obvious. There could be a name which is in no way connected to lightbox, say, Melina/Leeloo and it will work. But, yes, the SEO is much important. As for inlined images and thus less request - very good idea. Thanks - will add that. |
|
I just tested it in IE10 and Edge - I works perfect. If anybody wants backward compatibility with ancient (MS) browsers, let him use |
@jasomdotnet So what I need to do is a) to detect with js IE and Edge and set classes to HTML elementand then in CSS serve the right image what we have now is base64 encoded svg for close button and base64 encoded gif for loader So I think how could I achieve that withCSS only approach PS Oh yes I dont count anything less than IE11. That's right - the devs will manage. My concern is IE11 and Edge 13 Well I have to study this onece again and test https://stackoverflow.com/questions/10768451/inline-svg-in-css |
@englishextra you are right, SVG animation doesn't work in IE11 (either). You have already inlined animated gif into your script, that's why it worked in IE10. Alternative solution with svg (too keep "Retina readiness")What about some static SVG + animate it using Consider this, because gif is too pixelate. Using GIF format sounds outdated to me. |
thats what im working on it now thanks |
I finally used approach that I've already had before: Check for smil support and add So now base64 goes to Edge and IE11, and urlencoded svg to the rest of the browsers. That way the Retina Support is a real thing. I'll wait a bit for your remarks, and soon will publish the v0.1.9 to NPM. Thanks, you made me stand up and copy-paste some code. |
I think you have decided to go wrong direction. The proof is increased size of source code (one of your script main advantages). Minified CSS has 60kb now! GIFs cannot be much gzipped. Now it's above level of compressed jQuery. Don't do detection of SVG animation support (it only results in source code increase), leave in code only SVGs which you animate (rotate) using CSS for all browsers by default. In IE CSS animations are supported since IE9. Ones again: Remove ugly-pixelate-big gif, remove detection of SVG animation support, add CSS animation default for all browsers, decrease source code size. See this inspiration: https://codepen.io/abbeyjfitzgerald/pen/xddddL |
Oh yes - a pure CSS spinner can be used - then there'll be no smil check, but css for spinner (keyframes) and some html for spinner in JS - the advantage is that base64 images will be removed from css but instead the css with keyframes and the spinner itself will be added - in js the smil checl will be removed but inner html for spinner will be added But your suggestion sounds more cute and reasonable. And I already stopped using JS spinners in favour of these - https://github.com/epicmaxco/epic-spinners http://epic-spinners.epicmax.co/ This will go to 0.1.91 |
What a find! Epic-spinners is very adequate name :-) Then I suggest go this css way completely. Here are pure-css-closing-icon samples: http://jsfiddle.net/jermartin77/63sqmob6/ Tiniest code wins. |
OK - I know what I am doing next week. |
v0.2.0 on NPM https://www.npmjs.com/package/iframe-lightbox |
great job! |
Reconsider renaming to 'IFLI' IFrame LIghtbox. I personally like it more, but current name has god SEO (I googled it when I was looking for 'iframe lightbox').
In README.md you can add that the script is also:
The text was updated successfully, but these errors were encountered: