Thursday, December 3, 2026 | London 11°C · Drizzle
DailyGlimpse

AI

Google's Modern Web Guidance Exposes AI Coding Pitfalls: jQuery and Bloat

Locally Hosted 2 min read

AI coding agents often default to outdated patterns like jQuery, generating bloated code instead of modern, native alternatives. In a recent episode of the podcast Locally Hosted, hosts Alex and Sam dissect Google Chrome's Modern Web Guidance repository—a community-driven source repo with over 686 stars—to reveal why large language models (LLMs) produce such inefficient code and how developers can steer them toward better practices.

The repo aims to train AI agents to write modern, idiomatic web code. But as Alex and Sam discovered, the models frequently fall back on antiquated libraries and verbose approaches, especially for simple tasks like creating a modal dialog. They argue that the root cause lies in the training data: LLMs absorb decades of web documentation, including countless jQuery examples, and lack a built-in preference for newer standards.

To fix this, the duo recommends explicitly prompting models to use native browser APIs—such as the <dialog> element—and to avoid external dependencies. They also highlight the importance of authoring high-quality, modern examples in training datasets and calibrating models with rigorous evaluations. The podcast underscores a broader lesson for developers: AI is only as good as the guidance it receives, and without careful steering, it will perpetuate technical debt.

Key takeaways include:

  • Always specify "use modern vanilla JavaScript" in prompts.
  • Review AI-generated code for unnecessary libraries.
  • Contribute to open-source guidance repos like Google's to improve model behavior.

For a deeper dive, check out the full podcast on the Locally Hosted YouTube channel.

React