Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
408 views
in Technique[技术] by (71.8m points)

javascript - 用html加载表需要很长时间(Loading table in html takes quite long time)

I have a big table, which takes a lot of time to load on the web.(我有一张大桌子,要花很多时间才能加载到网络上。)

I'm looking for a solution to speed up the loading time, and I'm not looking into splitting it into various pages.(我正在寻找一种解决方案,以加快加载时间,而且我并没有考虑将其拆分为多个页面。) Any suggestion??(有什么建议吗?) Here is the link: http://khi.ac.ir/EnglishW/info/Students/All_Students.aspx(这是链接: http : //khi.ac.ir/EnglishW/info/Students/All_Students.aspx)   ask by user3027820 translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Try using JQuery DataTables Server Side Processing to accomplish this task.(尝试使用JQuery DataTables服务器端处理来完成此任务。)

http://www.datatables.net/release-datatables/examples/data_sources/server_side.html(http://www.datatables.net/release-datatables/examples/data_sources/server_side.html) This would be the only way to reduce loading time because instead of loading every table row at once, It will load a set of rows at a time.(这将是减少加载时间的唯一方法,因为它不会一次加载每个表行,而是一次加载一组行。)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...