<p>Recently I've been doing a lot of modal window pop-ups and what not, for which I used jQuery. The method that I used to create the new elements on the page has overwhelmingly been along the lines of: </p>

<pre><code>$("&lt;div&gt;&lt;/div&gt;");
</code></pre>

<p>However, I'm getting the feeling that this isn't the best or the most efficient method of doing this. What is the best way to create elements in jQuery from a performance perspective?</p>

<p><a href="https://stackoverflow.com/a/268520/32943">This answer</a> has the benchmarks to the suggestions below.</p>

I think you're using the best method, though you could optimize it to:
```
```
$("<div/>");
```
```