File
public/uploads/rules/do-you-use-the-ready-function/rule.mdx
Finding
The rule (lastUpdated: 2015-09-10) focuses on jQuery's .ready() and shows examples using $(function() {...}). It does not mention modern alternatives (the defer attribute, DOMContentLoaded, or ES module loading) nor that many projects no longer require jQuery.
Suggestions
- Add guidance to prefer native techniques:
defer on scripts, DOMContentLoaded, or using ES modules (type="module") for initialization.
- Note when framework lifecycle hooks are preferable (React/Vue/Angular) and when a small site might still use vanilla JS.
- Replace jQuery examples with modern equivalents and link to MDN references for
DOMContentLoaded and defer.
contenthawk-run-id: 24946376720
Generated by Content Judge (Agent 2a) · ◷
File
public/uploads/rules/do-you-use-the-ready-function/rule.mdxFinding
The rule (lastUpdated: 2015-09-10) focuses on jQuery's
.ready()and shows examples using$(function() {...}). It does not mention modern alternatives (thedeferattribute,DOMContentLoaded, or ES module loading) nor that many projects no longer require jQuery.Suggestions
deferon scripts,DOMContentLoaded, or using ES modules (type="module") for initialization.DOMContentLoadedanddefer.contenthawk-run-id: 24946376720