1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not Planned Replace old and buggy Lightbox with fast FotoramaJS

Discussion in 'Closed Suggestions' started by CyberAP, May 9, 2013.

  1. CyberAP

    CyberAP Well-Known Member

    As many of you know Lightbox works really bad, not loading images sometimes, completely ignoring mobile devices, etc.

    But there is an alternative: FotoramaJS, fast, lightweight, easy-to-use, mobile-friendly image gallery.
    You can test it on your own here: http://fotoramajs.com/
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Jeremy likes this.
  3. James

    James Well-Known Member

    The existing lightbox is "old and buggy"? That's news to me.
  4. goyo

    goyo Member

    That's news to me as well.
    Completely ignoring mobile devices ? Works 100% for me on android on tab and cell with Chrome and Firefox.

    There are at least 5 free javascript pop-up which comes to mind and I use them frequently on other sites: FancyBox, GreyBox, HighSlide, ThickBox, MultiBox but I have no problem with current implementation of XenForo pop-ups...
  5. Chris D

    Chris D XenForo Developer Staff Member

    Hm, bit of a hyperbolic statement, I feel.

    Also, FotoramaJS isn't even a lightbox. It's an image gallery or slider.

    How would that gallery work in practice in threads?

    Pre-load an instance of it in every single post that has an image in it? That doesn't sound like it'd be very good to me.

    I agree it's very nice, but I do not agree it's a suitable replacement for ANY lightbox (let alone an "old and buggy" one).
  6. CyberAP

    CyberAP Well-Known Member

    Name one thing in this world that can not be negotiated.
    Adam Howard likes this.
  7. James

    James Well-Known Member

    Almost perfect quote from Breaking Bad right there ;)
    Adam Howard and CyberAP like this.
  8. CyberAP

    CyberAP Well-Known Member

    Lightbox for now serves just one purpose: image slider among posts. Fotorama can do the same thing without causing bugs or long loads.

    Right now Lighbox in XenForo may not load some images (especially the first one, which happens to me almost every time), it certainly doesn't know anything about touch actions, even simple one touch can't open it properly (it opens with no image and any click will lead to it's closing), plus Lightbox does a hard time surfing through images, it takes about 1-2 seconds to skip an image and that's really annoying.
  9. Brogan

    Brogan XenForo Moderator Staff Member

    I have never encountered any of those issues on my PC or tablet.
  10. CyberAP

    CyberAP Well-Known Member

    I have to bear with them every time I visit XF forums on iPhone or iPod Touch.

    When it comes to PC: I don't know how others browsers handle it but in Chrome the 'can't load and stuck at first image' issue is sufficient.
  11. Chris D

    Chris D XenForo Developer Staff Member

    I have an iPhone and a PC where my primary browser is Chrome.

    I do not have any of the issues you mention.
  12. Jeremy

    Jeremy Well-Known Member

    Never had any issues. Unless I was on a seriously slow connection, but that can't realistically be helped by any JS.
  13. CyberAP

    CyberAP Well-Known Member

    Try to zoom in a bit closer and click on a thumbnail.
  14. Tracy Perry

    Tracy Perry Well-Known Member

    Did on my Galaxy Tab 7.7 and it works just fine... did on my iPad and it doesn't work as well... tells me that Apple's Safari engine that they force on all browsers may be the problem.
  15. anothereskimo

    anothereskimo Member

    I know a forum isn't a photo gallery – but when adding a lot of pictures to a post, the lightbox is really getting very slow... It takes up to 10 seconds until a picture is loaded...
    Anybody knows a solution for that?
  16. CyberAP

    CyberAP Well-Known Member

    It's in the first post. You just need to disable Lightbox somehow.
  17. anothereskimo

    anothereskimo Member

    Well, actually I like the lightbox "gallery function", but it's just very very slow (which is a result of loading all images in the background I suppose?)... Hm...
  18. x_Stricken_x

    x_Stricken_x Active Member

    I've never had any issues with the gallery itself. The only issue I have had is images fail to load, but that's only because I am downloading something and my speeds get very slow.

Share This Page