To Block or Not to Block: Accelerating Mobile Web Pages On-The-Fly Through JavaScript Classification

Moumena Chaqfeh, Muhammad Haseeb, Waleed Hashmi, Patrick Inshuti, Manesha Ramesh, Matteo Varvello, Lakshminarayanan Subramanian, Fareed Zaffar, Yasir Zaki

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

The increasing complexity of JavaScript (JS) in modern mobile web pages has become a performance bottleneck for low-end mobile phone users, especially in developing regions. In this paper we propose SlimWeb, a novel approach that automatically derives lightweight versions of mobile web pages on-the-fly by eliminating non-essential JavaScript that does not impact the core page content and interactive functionality. SlimWeb consists of a JavaScript classification service powered by a supervised Machine Learning (ML) model that provides insights into each JavaScript element embedded in a web page. SlimWeb aims to improve the web browsing experience by predicting the class of each element, such that essential elements are preserved and non-essential elements are blocked by the browsers using the service. We motivate SlimWeb's core design via a preference survey where 306 users overwhelmingly preferred having faster page load times over fetching various categories of non-essential JavaScript. We evaluate SlimWeb across 500 popular web pages in a developing region on real cellular networks, along with a user experience study with 20 real-world users and a usage willingness survey of 588 users. Evaluation results show that SlimWeb achieves 50% reduction in page load time compared to the original pages, and more than 30% reduction compared to competing solutions, while achieving high similarity scores to the original pages measured via a qualitative evaluation study with 62 users. SlimWeb improves the overall user experience metric (defined by Google Lighthouse combining first contentful paint, time to interactive, speed index) by more than 60% compared to the original pages, while maintaining 90-100% of the visual and functional components of most pages.

Original languageEnglish (US)
Title of host publicationProceedings of the 2022 International Conference on Information and Communication Technologies and Development, ICTD 2022
PublisherAssociation for Computing Machinery
ISBN (Electronic)9781450387620
DOIs
StatePublished - Jun 27 2022
Event2022 International Conference on Information and Communication Technologies and Development, ICTD 2022 - Seattle, United States
Duration: Jun 27 2022Jun 29 2022

Publication series

NameACM International Conference Proceeding Series

Conference

Conference2022 International Conference on Information and Communication Technologies and Development, ICTD 2022
Country/TerritoryUnited States
CitySeattle
Period6/27/226/29/22

Keywords

  • Classification
  • JavaScript
  • Mobile Web
  • User Experience

ASJC Scopus subject areas

  • Human-Computer Interaction
  • Computer Networks and Communications
  • Computer Vision and Pattern Recognition
  • Software

Fingerprint

Dive into the research topics of 'To Block or Not to Block: Accelerating Mobile Web Pages On-The-Fly Through JavaScript Classification'. Together they form a unique fingerprint.

Cite this