This article presents an analysis of differences in web performance metrics reported by Lighthouse between applications built with Astro and Next.js meta-frameworks, using three rendering strategies: Static Site Generation (SSG), Server-side Rendering (SSR) and Client-side Rendering (CSR). Analysis of the tests showed that the Astro framework performed better on the Total Blocking Time, while Next.js had an advantage on the Largest Contentful Paint. Although there were small differences in the Speed Index, they were noticeable - in favor of Next.js and the SSG rendering strategy in general. The results suggest that there is no single optimal solution for every case. The choice of framework and rendering strategy should be tailored to specific project needs and performance priorities.
References
[1] State of JavaScript 2024 – meta-frameworks, https://2024.stateofjs.com/en-US/libraries/meta-frameworks, [25.12.2024].
[2] T. F. Iskandar, M. Lubis, T. F. Kusumasari, A. R. Lubis, Comparison between client-side and server-side rendering in the web development, IOP Conference Series: Materials Science and Engineering 801(1) (2020) 012136, https://doi.org/10.1088/1757-899X/801/1/012136.
[3] D. Verma, P. Aland, A comparative review of server rendering and client side rendering in web development, International Journal of Scientific Research & Engineering Trends 10(2) (2024) 521–530.
[4] K. Kowalczyk, T. Szandala, Enhancing SEO in single-page web applications in contrast with multi-page applications, IEEE Access 12(2024) 11597–11614, https://doi.org/10.1109/access.2024.3355740.
[5] R. Ollila, N. Mäkitalo, T. Mikkonen, Modern web frameworks: A comparison of rendering performance, Journal of Web Engineering 21(3) (2022) 789–813, https://doi.org/10.13052/jwe1540-9589.21311.
[6] T. Lonka, Improving the initial rendering performance of React applications through contemporary rendering approaches, Master thesis, Aalto University, Espoo, 2023.
[7] J. Vepsäläinen, A. Hellas, P. Vuorimaa, The rise of disappearing frameworks in web development, In International Conference on Web Engineering (2023) 319–326, https://doi.org/10.1007/978-3-031-34444-2_23.
[8] J. H. Noor, The effects of architectural design decisions on framework adoption: A comparative evaluation of meta-frameworks in modern web development, Master thesis, Aalto University, Espoo, 2024, http://doi.org/10.13140/RG.2.2.10552.97287.
[9] Astro framework documentation, https://docs.astro.build, [25.12.2024].
[10] Next.js framework documentation, https://nextjs.org/docs, [25.12.2024].
[11] Introduction to Lighthouse – an open-source audit tool, https://developer.chrome.com/docs/lighthouse/overview, [25.12.2024].
[12] Core Web Vitals, https://web.dev/articles/vitals, [25.12.2024].
[13] Lighthouse tool performance scoring overview, https://developer.chrome.com/docs/lighthouse/performance/performance-scoring, [25.12.2024].