Evaluating the Use of LLMs for Automated DOM-Level Resolution of Web Performance Issues
Gideon Peters, SayedHassan Khatoonabadi, Emad Shihab

TL;DR
This study assesses nine state-of-the-art LLMs for automating DOM modifications to improve web performance, finding they excel at SEO and accessibility but show mixed results in performance-critical tasks, with GPT-4.1 achieving notable improvements.
Contribution
It provides a comprehensive evaluation of LLMs for automating DOM-level web performance optimization, highlighting their strengths and limitations in real-world scenarios.
Findings
LLMs perform well on SEO and Accessibility issues.
GPT-4.1 significantly reduces performance audit incidences.
Mixed efficacy of LLMs in performance-critical DOM manipulations.
Abstract
Users demand fast, seamless webpage experiences, yet developers often struggle to meet these expectations within tight constraints. Performance optimization, while critical, is a time-consuming and often manual process. One of the most complex tasks in this domain is modifying the Document Object Model (DOM), which is why this study focuses on it. Recent advances in Large Language Models (LLMs) offer a promising avenue to automate this complex task, potentially transforming how developers address web performance issues. This study evaluates the effectiveness of nine state-of-the-art LLMs for automated web performance issue resolution. For this purpose, we first extracted the DOM trees of 15 popular webpages (e.g., Facebook), and then we used Lighthouse to retrieve their performance audit reports. Subsequently, we passed the extracted DOM trees and corresponding audits to each model for…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware System Performance and Reliability · Digital Accessibility for Disabilities · Software Testing and Debugging Techniques
