When you ask a coding agent to create a dialog, it often pulls in a heavy JavaScript library—even though browsers now feature ...