Skip to main content

Speed Up the Web with Universal CSS Rendering

  • Conference paper
  • First Online:
Web Engineering (ICWE 2023)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 13893))

Included in the following conference series:

  • 542 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 64.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 84.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

Notes

  1. 1.

    npmjs.com/package/css-mediaquery.

  2. 2.

    angular.io/guide/universal.

  3. 3.

    npmjs.com/package/puppeteer.

  4. 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. 5.

    npmjs.com/package/sharp.

  6. 6.

    npmjs.com/package/pixelmatch.

  7. 7.

    developer.apple.com/download/more/?q=Additional%20Tools.

References

  1. Beregszaszi, A.: critical-css (2023). https://www.npmjs.com/package/critical-css. Accessed 10 Jan 2023

  2. 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

  3. 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

  4. Grigorik, I.: Measuring the critical rendering path (2023). https://web.dev/critical-rendering-path-measure-crp. Accessed 8 Jan 2023

  5. HTTP Archive: HTTP Archive: State of the Web (2023). https://httparchive.org/reports/state-of-the-web. Accessed 10 Jan 2023

  6. 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)

    Google Scholar 

  7. 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)

    Google Scholar 

  8. Mazinanian, D.: Eliminating code duplication in cascading style sheets. Ph.D. thesis, Concordia University (2017)

    Google Scholar 

  9. Ohlsson Aden, J.: penthouse (2023). https://www.npmjs.com/package/penthouse. Accessed 10 Jan 2023

  10. Osmani, A.: critical (2023). https://www.npmjs.com/package/critical. Accessed 10 Jan 2023

  11. 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)

  12. 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

  13. Wiegand, M.: Portent (2023). https://www.portent.com/blog/analytics/research-site-speed-hurting-everyones-revenue.htm. Accessed 10 Jan 2023

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Lucas Vogel .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics