jQuery DataTables - Slow initiation, “Normal” html table shown in the beginning

后端 未结 10 1296
旧时难觅i
旧时难觅i 2021-02-03 22:01

I\'m using jQuery DataTable plugin, but I got a concern where the scripts loading seems to take some time, so my web page is always displaying the ordinary html table first, and

10条回答
  •  北恋
    北恋 (楼主)
    2021-02-03 22:59

    My datatable was jumping between posts because of the filter on top.

    Simple solution: Hide the table with display:none, then use jquery .fadeIn() before DataTable() is called.

提交回复
热议问题