title: dataTable takes more time loading after logging into the client side
body: <p>I have a dataTable where I show about the contracts in the index page once we logged in. The dataTable contains merely 2000 rows for now. I have tried to load it faster by reading some of the techniques like <strong>deferRender, deferLoading, pagination, lengthChange and scroller</strong>. But none of these seems to be helping me. But if I try with the <strong>serverSide</strong> property my <strong>order by</strong> conditions are not getting applied from mysqli database. Here is my dataTable code and my mysqli code.</p>
  
  <p>dataTable:</p>
  
  <pre><code>jQuery("#table_contract").dataTable({
                      dom: "&lt;'row'&lt;'col-sm-12'Bftri&gt;&gt;" + "&lt;'row'&lt;'col-sm-4'l&gt;&lt;'col-sm-8'p&gt;&gt;",
                      "sAjaxSource": "mydatabase_source.php",
                      "bDestroy": true,
                      "scrollX": true,
                      select: true,
                      buttons: [{
                                  extend: 'collection',
                                  text: 'Export',
                                  buttons:[
                                              {
                                                  extend: 'pdfHtml5',
                                                  orientation: 'landscape',
                                                  pageSize: 'LEGAL',
                                                  text: '&lt;i class="fa fa-file-pdf-o"&gt;&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbspPDF&lt;/i&gt;',
                                                  titleAttr: 'PDF'
                                              },
                                              {
                                                  extend: 'excelHtml5',
                                                  orientation: 'landscape',
                                                  pageSize: 'LEGAL',
                                                  text: '&lt;i class="fa fa-file-excel-o"&gt;&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbspEXCEL&lt;/i&gt;',
                                                  titleAttr: 'Excel'
                                              },
                                              {
                                                  extend: 'csvHtml5',
                                                  orientation: 'landscape',
                                                  pageSize: 'LEGAL',
                                                  text:      '&lt;i class="fa fa-file-text-o"&gt;&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbspCSV&lt;/i&gt;',
                                                  titleAttr: 'CSV'
                                              },
                                              {
                                                  extend: 'copyHtml5',
                                                  orientation: 'landscape',
                                                  pageSize: 'LEGAL',
                                                  text: '&lt;i class="fa fa-files-o"&gt;&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbspCOPY&lt;/i&gt;',
                                                  titleAttr: 'Copy'
                                              }
                                      ]
                      },
                      {
                          extend: 'print',
                          orientation: 'landscape',
                          pageSize: 'LEGAL'
                      }
                      ] });
  </code></pre>
  
  <p>I encode the data's to the dataTable using <strong>json_encode($results)</strong>.</p>