I'm making my portfolio website here,
and I'm wondering if I should replace my LONG HTML5 code that populates my skills/projects/project modals into javascript that runs in a for loop.
I know it won't matter much because it is not like thousands of list elements, but if I take asymptotic approach, would it make difference at all?
I read this thread: Simple html vs Javascript generated html? , but it was still vague to me.
Thank you in advance.
EDIT
Someone voted that this post is unclear about what it's asking. So let me rephrase.
Assume that I'm populating almost infinite number of
<li>elements, will HTML5 tags (traditional way) load the page faster, or forloop in a JavaScript load the page faster? Another assumption is that page will be loaded at some point.
Thanks again.
<li>elements makes it hard to know what you're asking and how to advise, since such a set of elements would take an "almost infinite" amount of time to build in JS or transmit from a server. Be a bit more realistic: are you talking about 100<li>elements, 1000, 100000, or 1M?<li>elements ? @Jesse Kernaghan I do understand images are expensive, but I appreciate your answer.