An Experimental Evaluation of Lazy Loading and Code Splitting for React.js Performance Optimization

Authors

  • B. Krishna Kalyan Reddy
  • Dadala Jahnavi
  • A. Harini
  • Bashaboina Pavan Kalyan

Keywords:

Bundle size reduction, Code splitting, Core web vitals, Frontend optimization, Lazy loading, React.js, Web performance optimization

Abstract

React.js-based single-page applications often suffer from large initial bundle sizes, leading to degraded performance, particularly on mobile and low-bandwidth networks. As application complexity grows, large JavaScript bundles must be fully downloaded and parsed before any content is rendered, resulting in slower startup times and a poor user experience. Although lazy loading and code splitting are widely adopted in practice, controlled experimental validation within React.js environments remains limited. This study implements these techniques using React.lazy(), Suspense boundaries, and Webpack’s SplitChunksPlugin, and evaluates their combined impact under three simulated network conditions (Fast 4G, Slow 4G, and 3G) using Google Lighthouse in mobile simulation mode. A controlled prototype application comprising multiple functional pages and realistic third-party dependencies was developed in both baseline and optimized configurations. Experimental results demonstrate a 47.3% reduction in initial JavaScript transfer size, a 39.8% improvement in First Contentful Paint (FCP), and a 52.1% reduction in Total Blocking Time (TBT). Performance benefits are most pronounced under constrained 3G conditions, where absolute FCP gains exceed 2,200 ms. Statistical analysis using paired t-tests confirms that these improvements are significant (p < 0.01). Despite a limited sample size (n = 5), the controlled experimental design ensures consistency and reproducibility. The findings provide empirical evidence supporting lazy loading and code splitting as effective, production-ready frontend performance optimization strategies for modern React.js applications.

References

J. Wagner, A. Osmani, and T. Steiner, “Milliseconds Make Millions,” Google/Deloitte Industry Report, 2020.

I. Grigorik, High Performance Browser Networking. Sebastopol, CA: O’Reilly Media, 2013.

A. Osmani and Jason Miller, “Rendering on the Web,” Google Web Dev, 2019.

Addy Osmani, “JavaScript Start-up Performance,” Google Developers, 2017.

V. Veeri, “Performance optimization techniques in react applications: A comprehensive analysis,” International Journal of Research in Computer Applications and Information Technology (IJRCAIT), vol. 7, no. 2, pp. 1165–1177, Jul.–Dec. 2024.

Google Developers, “Core Web Vitals,” web.dev, 2024.

S. Ihm and V. S. Pai, “Towards understanding modern web traffic,” in Proc. ACM Internet Measurement Conference (IMC), 2011, pp. 295–312.

React Documentation, “Code-Splitting,” Meta Open Source, 2024.

A. Osmani, Learning JavaScript Design Patterns, 2nd ed. Sebastopol, CA: O’Reilly Media, 2023.

S. Souders, High Performance Web Sites: Essential Knowledge for Front-End Engineers. Sebastopol, CA: O’Reilly Media, 2007.

X. Meng, X. Wang, H. Zhang, H. Sun, X. Liu, and C. Hu, “Template-based Neural Program Repair,” 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE), pp. 1456–1468, May 2023.

M. Gaunt, “Code Splitting in Webpack,” Google Web Fundamentals, 2019.

R. Tang, F. Liu, and X. Xiao, “A Lightweight Approach for Large CAD Models Based on Lazy Loading,” 2023 IEEE 18th Conference on Industrial Electronics and Applications (ICIEA), pp. 1977–1982, Aug. 2023.

H. Djirdeh, “Apply instant loading with the PRPL pattern,” Articles, web.dev.

Google Chrome Developers, “Lighthouse Performance Scoring,” Google, 2024.

Z. Wang, F. X. Lin, L. Zhong, and M. Chishtie, “How far can client-only solutions go for mobile browser speed?” in Proc. 21st Intl. Conf. on World Wide Web (WWW), 2012, pp. 31–40.

Published

2026-05-25

How to Cite

B. Krishna Kalyan Reddy, Dadala Jahnavi, A. Harini, & Bashaboina Pavan Kalyan. (2026). An Experimental Evaluation of Lazy Loading and Code Splitting for React.js Performance Optimization. Journal of Android and IOS Applications and Testing, 11(2), 1–10. Retrieved from https://matjournals.net/engineering/index.php/JoAAT/article/view/3612

Issue

Section

Articles