Abstract
Achieving fast page load and upholding conversion rates requires continuous effort for web applications ever-growing in size and complexity. Consequently, developing new methods for optimizing and speeding up page load is a constant effort of the web community. Existing methods aim to reduce the amount of render-blocking code in the render pipeline to improve the time until render. However, a recent study revealed a tremendous optimization potential remaining, especially for CSS, since only \(\approx \) 15% of render-blocking CSS code is used until render [12]. In this paper, we present Essential, an improved serverside CSS renderer. It is based on the popular Critical package [10], which increases the code efficiency and prepares websites by extracting render-critical elements “Above-the-Fold" and delaying the remaining code asynchronously. Essential renders the CSS of the whole page, as well as eliminates code duplicates to optimize the rendered result. Our evaluation results show that Essential more than triples code efficiency and decreases the transferred render-critical CSS by 65.9% compared to the original while maintaining a high visual similarity and matching or surpassing the performance of Critical.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
Notes
- 1.
- 2.
- 3.
- 4.
As stated at the time of writing (June 2022) at npmjs.com/package/critical in section “Why should critical-path CSS be inlined?".
- 5.
- 6.
- 7.
References
Beregszaszi, A.: critical-css (2023). https://www.npmjs.com/package/critical-css. Accessed 10 Jan 2023
Bos, B., Çelik, T., Hickson, I., Lie, H.W.: Cascading style sheets level 2 revision 2 (CSS 2.2) specification (2016). https://www.w3.org/TR/CSS22. Accessed 10 Jan 2023
Google, Deloitte Digital and 55 the data company: Milliseconds make millions - a study on how improvements in mobile site speed positively affect a brand’s bottom line (2020). https://www2.deloitte.com/content/dam/Deloitte/ie/Documents/Consulting/Milliseconds_Make_Millions_report.pdf. Accessed 10 Jan 2023
Grigorik, I.: Measuring the critical rendering path (2023). https://web.dev/critical-rendering-path-measure-crp. Accessed 8 Jan 2023
HTTP Archive: HTTP Archive: State of the Web (2023). https://httparchive.org/reports/state-of-the-web. Accessed 10 Jan 2023
Janssen, K., Pelle, T., de Geus, L., van der Gronden, R., Islam, T., Malavolta, I.: On the impact of the critical css technique on the performance and energy consumption of mobile browsers. In: Proceedings of the International Conference on Evaluation and Assessment on Software Engineering (EASE) (2022)
Jovanovski, G., Zaytsev, V.: Critical css rules-decreasing time to first render by inlining css rules for over-the-fold elements. In: Postproceedings of 2016 Seminar on Advanced Techniques and Tools for Software Evolution (SATToSE), pp. 353–356 (2016)
Mazinanian, D.: Eliminating code duplication in cascading style sheets. Ph.D. thesis, Concordia University (2017)
Ohlsson Aden, J.: penthouse (2023). https://www.npmjs.com/package/penthouse. Accessed 10 Jan 2023
Osmani, A.: critical (2023). https://www.npmjs.com/package/critical. Accessed 10 Jan 2023
Pochat, V.L., Van Goethem, T., Tajalizadehkhoob, S., Korczyński, M., Joosen, W.: Tranco: a research-oriented top sites ranking hardened against manipulation. arXiv preprint arXiv:1806.01156 (2018)
Vogel, L., Springer, T.: An in-depth analysis of web page structure and efficiency with focus on optimization potential for initial page load. In: Di Noia, T., Ko, IY., Schedl, M., Ardito, C. (eds)International Conference on Web Engineering, pp. 101–116. Springer, Cham (2022). https://doi.org/10.1007/978-3-031-09917-5_7
Wiegand, M.: Portent (2023). https://www.portent.com/blog/analytics/research-site-speed-hurting-everyones-revenue.htm. Accessed 10 Jan 2023
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Vogel, L., Springer, T. (2023). Speed Up the Web with Universal CSS Rendering. In: Garrigós, I., Murillo Rodríguez, J.M., Wimmer, M. (eds) Web Engineering. ICWE 2023. Lecture Notes in Computer Science, vol 13893. Springer, Cham. https://doi.org/10.1007/978-3-031-34444-2_14
Download citation
DOI: https://doi.org/10.1007/978-3-031-34444-2_14
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-34443-5
Online ISBN: 978-3-031-34444-2
eBook Packages: Computer ScienceComputer Science (R0)