I have a rowset, I can generate a table (HTML) from it using PHP (server side) or I can send raw data to the client side and create the table there using JavaScript
Which one is better and the way?
The server side will work faster, because you still have to iterate over the collection of rows to get the row out of it, so instead you better create a table already ...
JavaScript content rendering in anti-SEO template!
Javascript, ( , ), - (, Google)
, . , , .
, , -/-. , , , , .
, , -. ( , )
. (, , SEO ..), .
Javascript , , ; , JavaScript, , , JS , script.
, , , , . , div , - , , , . 1 div / , .
, .
, -, .
In this case, definitely the client side. Even if you have 1000 lines. Send them to JSON (lower frequency band), then draw the table using jQuery, but don’t display them all at once. This will kill your browser. Use paging, sorting and searching to create the best user experience. If you need to deal with hundreds or thousands of lines, use jOrder to search, sort, and swap to speed things up.
Source: https://habr.com/ru/post/1757533/More articles:deployment version control configuration files - svnCan I create MyISAM and InnoDB tables in the same database using Hibenrate hbm2ddl - mysqlHow to show random images on Android? - androidHow to include HTMLPurifier on each page? - phpФормат даты и времени DD-MM-YYYY и MySQL - phpСоглашения об именах классов уровня представления и домена - naming-conventionsHow to fix the size of the password input field? - htmlTo find all possible permutations of a given string - cWhat is the difference between an instance in a constructor or in a field definition? - constructorRuby on Rails application cannot be launched - ruby-on-railsAll Articles