Non-jQuery version of DataTables. Is this gonna happen?

Non-jQuery version of DataTables. Is this gonna happen?

daytonoutardaytonoutar Posts: 25Questions: 7Answers: 1

Is there any initiative to have DataTables operate without jQuery as a dependency?

This question has an accepted answers - jump to answer


  • allanallan Posts: 51,739Questions: 1Answers: 7,830 Site admin
    Answer ✓

    Its something I keep considering - but then I keep coming back to the fact that it would be a very significant amount of work to re-implement the parts of jQuery we do use. For example event namespaces, events (keeping in mind that DT supports IE8+ - actually the current version is IE6+, but that will change soon) and various other things.

    Perhaps I might be wrong, but I feel my time working on DataTables would be better spent improving its core and features, rather than effectively rewriting parts jQuery and increasing the size and testing of the library. I'm not even certain how much space it would save once that has been done.

    That said, another option is to effectively abstract jQuery out, so it can be used if available, and if not then some compatibility layer that uses querySelectorAll will be used and that would support only evergreen browsers. Again, there is a good bit of work involved in that, and I've not yet made my mind up about if it is worth the trade off and size increase. It is probably the way I will go as I'm thinking about that as I'm writing the stuff for DataTables 2, but it does need to be noted the amount of value there is in using jQuery.


  • daytonoutardaytonoutar Posts: 25Questions: 7Answers: 1

    I've been looking through the source code. It is respectable work.

    I've seen an attempt to abstract jQuery out through this project,

    It's not complete though and no where near the maturity that jQuery DataTables have. I may make an attempt at contributing to that project while making reference and going through your source code.

    I do understand your goals and the focus you have on improving the core and features of jQuery DataTables.

    I may be just one of the few developers that prefer to use DataTables in any framework including Angular, which discourages the use of jQuery.

    I'll make an attempt at abstracting away jQuery but time will tell. It's not a priority, since I am mostly focused now on learning Angular while building an app that delivers value to users/customers.

  • BusterenBusteren Posts: 47Questions: 16Answers: 4

    Not to bump the thread, but I have also been looking a bit at it. But it is significant work and not sure it will be worth it as Allan mentioned for various reasons.

    @daytonoutar if you do plan on having a look, let me know. I am going to have a look at that github repository. If I do decide to do it, I will probably drop support for any unofficially supported browsers.

    @allan is there a roadmap for DataTables 2?

  • allanallan Posts: 51,739Questions: 1Answers: 7,830 Site admin

    Its somewhat out of date I'm afraid, but this is the roadmap. I need to update it!


  • harmenzonharmenzon Posts: 17Questions: 7Answers: 0

    Hi @allan. I've been using DataTables for a long time now. Still my preferred data table on the web. But since the years have passed, I have been moving away from jQuery and am now coding everything in Vanilla JS. So my question, are there any plans for DataTables without jQuery?

  • colincolin Posts: 8,647Questions: 0Answers: 1,445

    There is a loose plan - we have briefly look at alternatives, and that is still on the backburner, but it's not the main priority for us right now, I'm afraid.


Sign In or Register to comment.