CDN file naming conventions
CDN file naming conventions
Hi Allan,
I noticed that:
https://cdn.datatables.net/buttons/1.5.2/js/dataTables.buttons.min.js
https://cdn.datatables.net/buttons/1.5.2/css/buttons.dataTables.min.css
AND
https://cdn.datatables.net/select/1.5.2/js/dataTables.select.min.js
https://cdn.datatables.net/select/1.5.2/css/select.dataTables.min.css
The file naming convention between js and css files appears to be inconsistent (reversed). This is not the case for other dataTables files; it is only the case with buttons.dataTables and select.dataTables, insofar as I have seen.
Is this deliberate? Or could the buttons.dataTables and select.dataTables be named in a way consistent with the corresponding js files?
The reason I ask is that I work with a highly normalised database that takes advantage of css / js naming conventions being the same.
Steve
This question has an accepted answers - jump to answer
Answers
Copy/Paste error: the second set of links should read:
https://cdn.datatables.net/select/1.2.6/js/dataTables.select.min.js
https://cdn.datatables.net/select/1.2.6/css/select.dataTables.min.css
Yeah - so its a bit complicated why I decided to do it like that!
Basically the full file name for the Select buttons file should be
jquery.dataTables.select.dataTables.min.css
- i.e.:But having that full length file would drive us all nuts! So I chop the first two parts off in this case.
Related to this, you'll find that in the latest packages there is actually DataTables Javascript styling package files - e.g.
select.dataTables.min.js
(in addition todataTables.select.min.js
!).It might seem bonkers, as I'd agree (which is why they have only recently been introduced), but its to allow for consistency when installing the NPM packages for DataTables. You can use
datatables.net-dt
(DataTables styling) anddatatables.net-bs4
(Bootstrap 4) in exactly the same way.I'd suggest using the download builder to get all the files you need.
There is a whole load more information here should you be interested (although I'd suggest going out into the sun instead ;-) ).
Allan
Hi Allan,
Thank you for such a comprehensive answer.
The the next releases (1.5.3 && 1.2.7) will solve the issue because there will be a matching pair of js and css file names.
Do you have a release date?
Also, do you issue email updates of when a new version of a particular file is released?
And you're right... I should be out in the sun ;-)
Steve
They are actually released already - they just aren't used in the download builder as the software is identical - it was only for the npm packages that I had to bump the versions. So rather than taking up additional disk space, I've left the download builder at the previous versions. As I say though, the software is otherwise identical.
Currently no. That is something that Colin is going to look at when he gets back.
Allan
Hi Allan,
They are actually released already
https://cdn.datatables.net/select/1.2.7/js/select.dataTables.min.js
The above file is incomplete - as compared to:
https://cdn.datatables.net/select/1.2.7/js/dataTables.select.min.js
Have I misunderstood you?
I'm going to have a play with the download builder...
Steve
I think I get it now - I'm better off to use the download, place everything in a single datatables .js housed on my server, instead of using many separate files on a CDN
Generally speaking - yes. HTTP/2 mitigates that, and the CDN does support HTTP/2, but not all browser's support it yet.
Allan