期刊文献+

基于虚拟DOM的Web前端性能优化研究 被引量:14

RESEARCH OF OPTIMIZATION FOR WEB FRONT-END PERFORMANCE BASED ON VIRTUAL DOM
下载PDF
导出
摘要 随着Web前端的不断发展,Web页面变得越来越复杂,强交互性带来页面状态的疯涨,用于更新页面的DOM操作也越来越多。然而频繁的DOM操作使得页面渲染缓慢,造成前端性能瓶颈。在分析造成此问题原因的基础上,介绍一种由虚拟DOM和Diff算法来优化DOM操作的方法。通过分析传统Tree-Diff与DOM-Diff算法,对现有Diff算法做出改进。最后搭建测试平台,对改进后算法(Virtual-DOM)、React JS以及原生JS进行渲染性能测试,并对测试结果进行对比分析。测试结果表明:虚拟DOM确实可以优化浏览器的渲染性能,且在特定的情况下,DOM-Diff改进算法效果比React JS更理想。 With the constant development of the web front-end, interaction leads to a crazy rise in page status. DOM operation for u web page has become more complex. Strong pdating the page will also increase. However, frequent DOM operation makes slow page rendering, resulting in front-end performance bottlenecks. Therefore, based on the analysis of the causes of this problem, a method of optimizing DOM operation by virtual DOM and Diff algorithm was introduced. Moreover, by analyzing the traditional Tree-Diff and DOM-Diff algorithm, the existing Diff algorithm was improved. Finally, a test platform was built to test the rendering performance of the improved algorithm ( Virtual-DOM), ReactJS and native JS, and the test results were compared and analyzed. The experimental results show that the virtual DOM can really optimize the rendering performance of the browser. And in certain circumstances, the improved DOM- Diff algorithm is better than React.IS.
出处 《计算机应用与软件》 2017年第12期21-25,31,共6页 Computer Applications and Software
基金 国家科技支撑计划子课题(2015BAH33F0202)
关键词 Web前端性能优化 虚拟DOM Diff算法 ReactJS Web front-end performance optimization Virtual DOM Diff algorithm ReactJS
  • 相关文献

参考文献4

二级参考文献68

  • 1马徐琨,邹冰.分段曲线拟合在同步距离后置处理中的应用[J].声学技术,2004,23(3):159-162. 被引量:5
  • 2高伟,姜水生.分段曲线拟合与离散度加权的数据误差处理方法[J].中国测试技术,2005,31(6):55-56. 被引量:14
  • 3[1]Kiasi F.An interpolative fuzzy inference using least square principle by means of β-function and high order polynomials.Proceedings of the IEEE International Conference on Mechatronics & Automation Niagara Falls,Canada.July 2005
  • 4[4]Roychowdhury S,Fuzzy curve fitting using least square principles,1998 IEEE International Conference on Systems,Man and Cybernetics,4:4022-4027
  • 5夏冰,高军,王腾蛟,杨冬青.一种高效的动态脚本网站有效页面获取方法[J].软件学报,2009(20):176-183.
  • 6GARRETT J J. Ajax: a new approach to web applications[ EB/OL]. ( 2005- 02- 18 ) [ 2010- 01 - 15 ]. http ://www. adaptivepath, com/ide- as/essays/archives/000385, php.
  • 7张成奇.支持Ajax的deepWeb爬虫设计与实现[D].上海:上海交通大学,2009.
  • 8BERGMAN M K. The deep Web:surfacing hidden value [ R/OL]. [ 2012 - 06 - 18 ]. http ://www. brightplanet, com/2012/06/the-web-surfacing-hidden-ralue/.
  • 9MESBAH A, Van DEURSEN A, LENSELINK S. Crawling Ajaxbased Web applications through dynamic analysis of user interface state changes[ J]. ACM Trans on the Web,2012,6( 1 ).
  • 10SHASH S. Crawling Ajax-driven Web 2.0 applications [ R/OL ]. ( 2007-02-14 ) [ 2012-08-10 ]. http ://www. infosecwriters, corn/text resources/pdf/Crawling_AJAX_SShah, pdf.

共引文献129

同被引文献118

引证文献14

二级引证文献48

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部