Which is faster? Native HTML Select options or SELECT options populated using JQuery -


i have html page few select input more 50 options each. wonder whether faster load html options populating them via jquery , or put <options> in html form. jquery method allow me easier maintain in future, need update json data.

the client might add more options in future main concern efficiency. neither database nor internet available page, main consideration javascript or pure html.

updated: jquery loaded on page sits in same box(locally)

javascript , jquery can't elements until elements have been loaded dom. text contained within elements inserted dom nodes on load while javascript , jquery sit idly waiting. when jquery gets work on text nodes, it's relatively slow process. so, html faster loading them javascript/jquery.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -