Is there a preferred position for the tag "label for", using jQuery Mobile?
i have a single-page web-view with ~2000 elements, and i try now to make
some performance tuning. The question is: from the performance point of
view, is in JQM a preferred order to write the tag pairs:
<input type="radio" name="e1-bin" id="e1-bin-0" value="1M" />
<label for="e1-bin-0">1 Module</label>
or maybe is better to write first the "label for" tag and then the "input"
(or "select") tag? I ask this, because JQM, like others
javascript-frameworks, are doing some "heavy" manipulation of the DOM, to
style the elements and render the user interface.
Is somewhere a benchmark for this, or is the order of the tags in the HTML
simply not releveant for the performance?
No comments:
Post a Comment