GithubHelp home page GithubHelp logo

Does it also work for IE10? about yall.js HOT 7 CLOSED

stratboy avatar stratboy commented on May 25, 2024
Does it also work for IE10?

from yall.js.

Comments (7)

collinsethans avatar collinsethans commented on May 25, 2024 1

Trying to understand: shouldn't it be working on older browsers, IE10 and other previous ones?

It says that whereever Intersection Observer is not available (including polyfill), it falls back to scroll/touch/orientation change -- so I tend to think that it will work on all older, just like the earlier packages, eg github.com/tuupola/jquery_lazyload.

I am new and exploring this package for possible production usage.

from yall.js.

stratboy avatar stratboy commented on May 25, 2024 1

I understand this might be disappointing

No you're not, no worry. It's true IE10 is not to be considered too much. I asked only because one of my clients still uses is, as you said, in his intranet. But I think I can use your script anyway someway.
Thank you for your code, regards.

from yall.js.

malchata avatar malchata commented on May 25, 2024

Doubt it. I haven't tested, so I don't know for sure, but if it does work in IE10, it's entirely by accident.

from yall.js.

stratboy avatar stratboy commented on May 25, 2024

I am new and exploring this package for possible production usage.

Me too

from yall.js.

malchata avatar malchata commented on May 25, 2024

After investigating, it appears yall.js does not work for IE 10, mostly because it uses the dataset feature to manage data- attributes. I considered flipping these back to use getAttribute, but doing so would be a non-trivial change due to the script's current architecture.

Therefore, I will not be modifying this script to work with IE10, and to be fair, I had misgivings about doing so in the first place. IE10 represents, by far, a vast minority of browsers in use (0.1% globally according to caniuse.com). There may be some corporate intranets that still need to use it, but even so, I would have to think most of these organizations have updated to IE11, which yall.js supports.

I understand this might be disappointing, but I have to draw a line. To me, that line starts at IE10 (and earlier). I didn't make this decision lightly. Fortunately, there are a high number of IE10 compatible lazy loaders out there. lazysizes is one such option that works all the way back to IE8, even.

Closing for now.

from yall.js.

malchata avatar malchata commented on May 25, 2024

So, somewhat opportunistically, the latest release of yall 2.2.1 now works in IE 10. I was able to remove use of the dataset feature. This doesn't mean IE10 is officially supported by yall, but I can verify that basic functionality works in this release through a Windows 7/IE 10 VM.

from yall.js.

stratboy avatar stratboy commented on May 25, 2024

from yall.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.