JSFiddle - React, Tailwind, and code Playground

by Timmy Willison

HTML

<div class="list">
    <ul>List</ul>
</div>
<ul class="hidden"></ul>

CSS

.list { margin: 10px; }

.hidden { display: none; }

JavaScript

var $hidden = $('.hidden'),
    html = '';

for(var i=0; i<1000; i++) {
    html += "<li name='some-id'>" + i + "</li>";
}

$hidden.append(html);

//jQuery("ul").add(jQuery("li"));