JSCleaner: De-Cluttering Mobile Webpages Through JavaScript Cleanup

JSCleaner: De-Cluttering Mobile Webpages Through JavaScript Cleanup
复制标题

JSCleaner:通过 JavaScript 清理整理移动网页

DOI:
--
复制
发表时间:
2020
期刊:
The Web Conference
影响因子:
--
通讯作者:
Lakshmi Subramanian
Lakshmi Subramanian
中科院分区:
--
文献类型:
--
作者:
Moumena Chaqfeh;Y. Zaki;Jacinta Hu;Lakshmi Subramanian

文献摘要

被引文献

相似文献

万维网的很大一部分受到过度使用JavaScript(JS)的影响。基于对流行网页的分析,我们观察到这些网页所使用的相当数量的JS元素对于其视觉和功能特性并不重要。在本文中,我们提出了JSCleaner,一个JavaScript去杂波引擎,旨在简化网页,而不损害其内容或功能。JSCleaner依赖于基于规则的分类算法,该算法将JS分为三个主要类别:非关键,可替换和关键。JSCleaner从网页中删除非关键的JS,将可替换的JS元素转换为HTML结果,并保留关键的JS。我们对500个流行网页的定量评估表明,JSCleaner实现了页面加载时间减少约30%,请求数量和页面大小减少50%。此外,我们对103名评估者的定性用户研究表明,JSCleaner保留了95%的页面内容相似性,同时保持了近88%的页面功能(其余12%对用户浏览体验没有重大影响)。
A significant fraction of the World Wide Web suffers from the excessive usage of JavaScript (JS). Based on an analysis of popular webpages, we observed that a considerable number of JS elements utilized by these pages are not essential for their visual and functional features. In this paper, we propose JSCleaner, a JavaScript de-cluttering engine that aims at simplifying webpages without compromising their content or functionality. JSCleaner relies on a rule-based classification algorithm that classifies JS into three main categories: non-critical, replaceable, and critical. JSCleaner removes non-critical JS from a webpage, translates replaceable JS elements with their HTML outcomes, and preserves critical JS. Our quantitative evaluation of 500 popular webpages shows that JSCleaner achieves around 30% reduction in page load times coupled with a 50% reduction in the number of requests and the page size. In addition, our qualitative user study of 103 evaluators shows that JSCleaner preserves 95% of the page content similarity, while maintaining nearly 88% of the page functionality (the remaining 12% did not have a major impact on the user browsing experience).