Dowloading zip only gives base JS and CSS files
Dowloading zip only gives base JS and CSS files
Whenever I try to download a Datatables with the Zip file option, I only have the following files:
- datatables.css
- datatables.js
- datatables.min.css
- datatables.min.js
I tried adding JQuery/Bootstrap 5 in the download, but it was still the same list of files. I also tried running Datatables with only the given files, but it did not work as it did before.
I also tried to make smaller bundles, but to no avail.
If I remember correctly, all of the plugins would also be present in the folder when I downloaded the older versions.
Was there a change in how the zip download works?
This question has an accepted answers - jump to answer
Answers
The downloaded files contain all the selected libraries. Open on of the files and you will see this (from your example link above):
This question has been asked before and Allan explained he removed the individual files from the download.
As shown in the download tab all you need to use is these two statements:
You might be experiencing issue if you are still loading the individual libraries as this will cause them to be loaded twice. Loading a .js more than once usually doesn't work.
If you still have issues please post a link to a test case replicating the issues.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
Many years ago, the download builder used to include the individual files, as well as the combined files, which is probably what you are remembering. Unfortunately it led to a lot of people being confused as to what files they should include.
Now the download zip package just includes the combined files based on the options selected.
Allan