DataTables / DataTablesSrc

DataTables source repository
https://datatables.net
MIT License
628 stars 423 forks source link

Styling table responsive doesn't work because cdn link doesn't include the following attributes rel="stylesheet" type="text/css" #234

Open daffaharizal opened 1 year ago

daffaharizal commented 1 year ago

Maybe it's just changing the documentation, but it's really necessary for a better user experience. I experienced it because the cdn link from the official documentation didn't include it.

AllanJard commented 1 year ago

Is this on the installation page (or somewhere else)? The rel="stylesheet" attribute is absolutely needed and I accidentally removed that recently. I've just added it back.

The type attribute however isn't required - indeed MDN recommend not including it:

The common use of this attribute is to define the type of stylesheet being referenced (such as text/css), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the type attribute, but is actually now recommended practice.