JSCleaner: De-Cluttering Mobile Webpages Through JavaScript Cleanup
Moumena Chaqfeh, Yasir Zaki, Jacinta Hu, Lakshmi Subramanian
Abstract
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).
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Digital Disparities: A Comparative Web Measurement Study Across Economic Boundaries cites A First Look at Public Service Websites from the Affordability Lens
- Digital Disparities: A Comparative Web Measurement Study Across Economic Boundaries cites A Framework for Improving Web Affordability and Inclusiveness
- A Framework for Improving Web Affordability and Inclusiveness cites BrowseLite: A Private Data Saving Solution for the Web
Cited by top-tier papers5
- BrowseLite: A Private Data Saving Solution for the WebConor Kelton, Matteo Varvello, Andrius Aucinas, Ben LivshitsWWW 2021 · 11 citations
- A Framework for Improving Web Affordability and InclusivenessRumaisa Habib, Sarah Tanveer, Aimen Inam, Haseeb Ahmed et al.SIGCOMM 2023 · 7 citations
- Digital Disparities: A Comparative Web Measurement Study Across Economic BoundariesMasudul Hasan Masud Bhuiyan, Matteo Varvello, Cristian-Alexandru Staicu, Yasir ZakiWWW 2025 · 5 citations
- A First Look at Public Service Websites from the Affordability LensRumaisa Habib, Aimen Inam, Ayesha Ali, Ihsan Ayyub Qazi et al.WWW 2023 · 4 citations
- MAML: Towards a Faster Web in Developing RegionsAyush Pandey, Matteo Varvello, Syed Ishtiaque Ahmed, Shurui Zhou et al.WWW 2025 · 3 citations
Related papers
- QLUE: A Computer Vision Tool for Uniform Qualitative Evaluation of Web PagesWaleed Hashmi, Moumena Chaqfeh, Lakshminarayanan Subramanian, Yasir ZakiWWW 2022 · 7 citations
- Detecting and Understanding Self-Deleting JavaScript CodeXinzhe Wang, Zeyang Zhuang, Wei Meng, James ChengWWW 2024
- Increasing the Responsiveness of Web Applications by Introducing Lazy LoadingAlexi Turcotte, Satyajit Gokhale, Frank TipASE 2023 · 3 citations
- Horcrux: Automatic JavaScript Parallelism for Resource-Efficient Web ComputationShaghayegh Mardani, Ayush Goel, Ronny Ko, Harsha V. Madhyastha et al.OSDI 2021 · 9 citations
- Jawa: Web Archival in the Era of JavaScriptAyush Goel, Jingyuan Zhu, Ravi Netravali, Harsha V. MadhyasthaOSDI 2022
