You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now I'm using DataTables for column click-sorting. There also an option (currently commented out because it's ugly) for toggling column visibility. This was the quickest and easiest way to get this important feature working.
One thing that concerns me is the amount of CDNs this requires. Before putting in DataTables the project used two, for Bootstrap CSS and htmx. Using DataTables for column sort adds five more: JQuery, Datables CSS, Datatables JS, Datatables Bootstrap CSS, and Datatables Bootstrap JS. Adding the column toggle button involves two more!
I don't know if it's unfounded, but bringing in CDNs over the web seems fragile to me. And there's also the inelegance of bringing in so many resources for 1-2 features.
Lastly, column click-sorting and toggling column visibility seem like things that htmx should be perfect for. For now though this won't be a priority...
The text was updated successfully, but these errors were encountered:
If the above doesn't work for you, A consideration could be to bring the project local by downloading the libraries and adding them to your project directly. This has the benefit of increasing performance and security but also means that you need to pay attention to those libraries for potential security updates (so there's a tradeoff).
Adam Johnson (https://adamj.eu/tech/) often speaks about bringing libraries local to the project on his blog, I can't seem to find the exact post though.
Given that you do have this valid concern, i'd try the server-side rendered tables.
Right now I'm using DataTables for column click-sorting. There also an option (currently commented out because it's ugly) for toggling column visibility. This was the quickest and easiest way to get this important feature working.
One thing that concerns me is the amount of CDNs this requires. Before putting in DataTables the project used two, for Bootstrap CSS and htmx. Using DataTables for column sort adds five more: JQuery, Datables CSS, Datatables JS, Datatables Bootstrap CSS, and Datatables Bootstrap JS. Adding the column toggle button involves two more!
I don't know if it's unfounded, but bringing in CDNs over the web seems fragile to me. And there's also the inelegance of bringing in so many resources for 1-2 features.
Lastly, column click-sorting and toggling column visibility seem like things that htmx should be perfect for. For now though this won't be a priority...
The text was updated successfully, but these errors were encountered: