Title :
Empirical study on effects of script minification and HTTP compression for traffic reduction
Author :
Sakamoto, Yasutaka ; Matsumoto, Shinsuke ; Tokunaga, Seiki ; Saiki, Sachio ; Nakamura, Masahide
Author_Institution :
Grad. Sch. of Syst. Inf., Kobe Univ., Kobe, Japan
Abstract :
Code-on-demand is an architectural style that a client dynamically downloads a raw script file and executes it on the client-side. This style causes a problem of network traffic because a raw script is not always compiled or minified in advance. Formatting rules, such as indents, line breaks and comments for ensuring human readability, are not necessary to the execution. In order to save wasteful data transfer, it is necessary to minify or optimize the script on the entirety of the Web. In this paper, we explore the potential for JavaScript size reduction with focus on the two reduction approaches: script minification and HTTP compression. The main two research questions are: RQ1: How many percent of websites have reduction potential? RQ2: How much JavaScript size can be reduced on the Web? Our results show that about 40% of total size of JavaScript files used on the top 500 websites can be potentially reduced by a script minification. Moreover, the current JavaScript data traffic is saving over 50% by HTTP compression. If every website was configured to use HTTP compression, we can achieve a reduction rate of 5% to 20%.
Keywords :
Java; Web sites; client-server systems; data compression; telecommunication traffic; transport protocols; HTTP compression; JavaScript data traffic; JavaScript size reduction; RQ1; RQ2; Web sites; architectural style; client-side; code-on-demand; data transfer; empirical analysis; formatting rules; network traffic reduction; raw script file; script minification; script optimization; Browsers; Data transfer; Educational institutions; Encoding; HTML; Optimization; Servers; HTTP compression; JavaScript; Traffic reduction; code-on-demand; script optimization;
Conference_Titel :
Digital Information, Networking, and Wireless Communications (DINWC), 2015 Third International Conference on
Conference_Location :
Moscow
Print_ISBN :
978-1-4799-6375-1
DOI :
10.1109/DINWC.2015.7054230