Muzeel: A Dynamic JavaScript Analyzer for Dead Code Elimination in Today's Web

06/15/2021
by   Tofunmi Kupoluyi, et al.
0

JavaScript contributes to the increasing complexity of today's web. To support user interactivity and accelerate the development cycle, web developers heavily rely on large general-purpose third-party JavaScript libraries. This practice increases the size and the processing complexity of a web page by bringing additional functions that are not used by the page but unnecessarily downloaded and processed by the browser. In this paper, an analysis of around 40,000 web pages shows that 70 unused, and the elimination of these functions would contribute to the reduction of the page size by 60 Muzeel (which means eliminator in Arabic); a solution for eliminating JavaScript functions that are not used in a given web page (commonly referred to as dead code). Muzeel extracts all of the page event listeners upon page load, and emulates user interactions using a bot that triggers each of these events, in order to eliminate the dead code of functions that are not called by any of these events. Our evaluation results spanning several Android mobile phones and browsers show that Muzeel speeds up the page load by around 30 low-end phones, and by 25 the speed index (which is an important user experience metric) by 23 under the same network on low-end, and high-end phones, respectively. Additionally, Muzeel reduces the overall download size while maintaining the visual content and interactive functionality of the pages.

READ FULL TEXT
research
02/22/2018

Investigating the Evolvability of Web Page Load Time

Client-side Javascript execution environments (browsers) allow anonymous...
research
03/16/2020

System to Identify and Elide Superfluous JavaScript Code for Faster Webpage Loads

Many websites import large JavaScript (JS) libraries to customize and en...
research
11/21/2017

Raspberry Pi and Arduino Uno Working together as a Basic Meteorological Station

The present paper describes a novel Raspberry Pi and Arduino UNO archite...
research
10/10/2020

Predicting Developers' IDE Commands with Machine Learning

When a developer is writing code they are usually focused and in a state...
research
11/08/2018

SpeedReader: Reader Mode Made Fast and Private

Most popular web browsers include "reader modes" that improve the user e...
research
09/06/2013

Desktop and Mobile Web Page Comparison: Characteristics, Trends, and Implications

The broad proliferation of mobile devices in recent years has drasticall...
research
04/27/2021

A Chromium-based Memento-aware Web Browser

Web browsers provide a user-friendly means of navigating the web. Users ...

Please sign up or login with your details

Forgot password? Click here to reset