Improving Web Performance with Lazy Loading and Minification Algorithms

Authors

  • Sankara Iddrisu
  • Daniel Asenso
  • William Asiedu

Keywords:

Algorithmic synergy, Lazy loading, Minification, Web algorithm, Web optimization, Web performance metrics

Abstract

In this rapidly evolving digital landscape, web performance optimization has become an indispensable element in facilitating user contentment and engagement. This article investigates the contributions of lazy loading and minification algorithms in the augmentation of web performance. The study is structured around three key parameters: the effects of lazy loading algorithm, minification algorithm, and the synergistic impact of both algorithms on web performance. In furtherance, the best practices for the implementation of lazy loading and minification algorithms for optimal performance are also explored. Through the examination of performance metrics across four prototype websites designed and experimented upon in a controlled environment, the study concludes that lazy loading enhances page load times by deferring the loading of off-screen elements, while minification decreases file sizes by the removal of superfluous characters.

The concurrent application of both algorithms reveals a noteworthy enhancement in performance particularly in the reduction of initial page load times and overall bandwidth consumption. Moreover, the article delineates best practices for implementing these algorithms, including the strategic application of lazy loading for images and non-essential resources, as well as the utilization of effective minification tools for JavaScript and CSS files. The results imply that a meticulously organized approach to lazy loading and minification can substantially improve user experience, decrease bounced rates, and enhance search engine rankings.

References

J. Pibernik, J. Dolić, L. Mandić, and V. Kovač, "Mobile-Application Loading-Animation Design and Implementation Optimization," Applied Science, vol. 13, no. 2, p. 865, Jan. 2023. DOI: https://doi.org/10.3390/app13020865.

B. Lanza, B. B. Oliveira, M. A. Juk, T. Ávila, and D. Valotto, "Does web page loading speed matter? An analysis in the Brazilian Public Service Portals," in Proceedings of the 23rd Annual International Conference on Digital Government Research, Sept. 2022, pp. 268–273. DOI: https://doi.org/10.1145/3543434.3543586.

S. Bire and V. Pawar, "Lazy loading based with load on demand and currency support in web browser," International Journal of Scietific Research In Science, Engineering and Technology, vol. 8, no. 3, 2021, Available at: https://doi.org/10.32628/IJSRSET2183183.

A. Turcotte, S. Gokhale, and F. Tip, "Increasing the responsiveness of web applications by introducing lazy loading," 2023 38th IEEE/ACM International Conference on Automated Software Engineering (ASE), Luxembourg, Luxembourg, 2023, pp. 459–470. DOI: https://doi.org/10.1109/ase56229.2023.00192.

M. Hague, A. W. Lin, and C.-D. H., "CSS Minification via Constraint Solving," ACM Transactions on Programming Languages and Systems (TOPLAS), vol. 41, no. 2, p. 12, 2019. DOI: https://doi.org/10.1145/3310337.

F. H. F. Nah, "A study on tolerable waiting time: How long are Web users willing to wait?", Behaviour & Information Technology, vol. 23, no. 3, 2004, pp. 153-163, DOI: https://doi.org/10.1080/01449290410001669914.

D. Bansal, "How SEO makes website load faster and helps in user engagement," International Journal of Multidisciplinary Research, vol. 6, no. 2, 2024, DOI: https://doi.org/10.36948/ijfmr.2024.v06i02.15291.

B. Cheng, L. Stein, H. Jin, and Z. Zhang, "A framework for lazy replication in P2P VoD," Proceedings of the 18th International Workshop on Network and Operating Systems Support for Digital Audio and Video (NOSSDAV '08), 2008, pp. 93–98. DOI: https://doi.org/10.1145/1496046.1496068.

Y. Sakamoto, S. Matsumoto, S. Tokunaga, S. Saiki, and M. Nakamura, "Empirical study on effects of script minification and HTTP compression for traffic reduction," 2015 Third International Conference on Digital Information, Networking, and Wireless Communications (DINWC), Moscow, Russia, 2015, pp. 127–132. DOI: https://doi.org/10.1109/DINWC.2015.7054230.

A. M. Al-Smadi, A. Al-Smadi, R. M. Aloglah, A. J. S. Abu-Darwish, and A. Abugabah, "Files cryptography based on one-time pad algorithm," International Journal of Electrical and Computer Engineering, vol. 11, no. 3, pp. 2335–2342, 2021. DOI: http://dx.doi.org/10.11591/ijece.v11i3.pp2335-2342.

T. Enghardt, T. Zinner, and A. Feldmann, Web Performance Pitfalls. Springer, 2019, pp. 286–303. DOI: https://doi.org/10.1007/978-3-030-15986-3_19.

L. J. Hellerstein, "An approach to selecting metrics for detecting performance problems in information systems," Proceedings of IEEE International Workshop on System Management, Toronto, ON, Canada pp. 30–39, 1996. DOI: https://doi.org/10.1109/IWSM.1996.534144.

R. Malhotra and A. Sharma, "Estimating the threshold of software metrics for web applications," International Journal of System Assurance Engineering and Management, vol. 10, no. 1, pp. 110–125, Feb. 2019. DOI: https://doi.org/10.1007/S13198-019-00773-1.

A. Mori, E. Figueiredo, and E. Cirilo, "Towards the Definition of Domain-Specific Thresholds," XIII Brazilian Symposium on Information Systems, Lavras, Minas Gerais, Jun. 2017, pp. 404–411. DOI: https://doi.org/10.5753/SBSI.2017.6069.

P. Oliveira, T. M. Valente, A. Bergel, and A. Serebrenik, "Validating metric thresholds with developers: An early result," 2015 IEEE International Conference on Software Maintenance and Evolution (ICSME), Bremen, Germany, 2015, pp. 546-550, pp. 546–550. DOI: https://doi.org/10.1109/ICSM.2015.7332511

Published

2025-02-03

How to Cite

Sankara Iddrisu, Daniel Asenso, & William Asiedu. (2025). Improving Web Performance with Lazy Loading and Minification Algorithms. Journal of Web Development and Web Designing, 10(1), 1–11. Retrieved from https://www.matjournals.net/engineering/index.php/JoWDWD/article/view/1377

Issue

Section

Articles