JSRehab: Weaning Common Web Interface Components from JavaScript Addiction

03/14/2022
by   Romain Fouquet, et al.
0

Leveraging JavaScript (JS) for User Interface (UI) interactivity has been the norm on the web for many years. Yet, using JS increases bandwidth and battery consumption as scripts need to be downloaded and processed by the browser. Plus, client-side JS may expose visitors to security vulnerabilities such as Cross-Site Scripting (XSS).This paper introduces a new server-side plugin, called JSRehab, that automatically rewrites common web interface components by alternatives that do not require any JavaScript (JS). The main objective of JSRehab is to drastically reduce-and ultimately remove-the inclusion of JS in a web page to improve its responsiveness and consume less resources. We report on our implementation of JS-Rehab for Bootstrap, the most popular UI framework by far, and evaluate it on a corpus of 100 webpages. We show through manual validation that it is indeed possible to lower the dependencies of pages on JS while keeping intact its interactivity and accessibility. We observe that JSRehab brings energy savings of at least 5 the tested devices, while introducing a median on-the-wire overhead of only 5 to the HTML payload.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/16/2022

Do Fewer Tiers Mean Fewer Tears? Eliminating Web Stack Components to Improve Interoperability

Web applications are structured as multi-tier stacks of components. Each...
research
04/03/2018

Automated Detecting and Repair of Cross-Site Scripting Vulnerabilities

The best practice to prevent Cross Site Scripting (XSS) attacks is to ap...
research
09/13/2018

Fidelius: Protecting User Secrets from Compromised Browsers

Users regularly enter sensitive data, such as passwords, credit card num...
research
02/15/2021

Browselite: A Private Data Saving Solution for the Web

The median webpage has increased in size by more than 80 years. This ext...
research
05/08/2019

Blitz-starting QUIC Connections

In this paper, we revisit the idea to remove Slow Start from congestion ...
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/2023

Data navigation on the ENCODE portal

Spanning two decades, the Encyclopaedia of DNA Elements (ENCODE) is a co...

Please sign up or login with your details

Forgot password? Click here to reset