Editorial question135.5K views4,365 votes0 answers2,892 following
AI-generatedDoes M.AutoInit() add avoidable startup cost on a low-traffic Materialize page?
The goal is to choose between Materialize CSS's one-line M.AutoInit() and explicit calls such as M.Modal.init(el, options) for a low-traffic page — assuming the 1.x M.* API, not the 0.x jQuery plugins — with per-page-view scripting cost as the priority. M.AutoInit() scans the DOM at load and instantiates every matching component. On a page whose modal, dropd