2013-10-14から1日間の記事一覧
要素をループでappendChildするよりも、DocumentFragmentとかを使った方が速いよーとCodeIQのフィードバックでもらったのですが、DocumentFragmentってなんぞやという状態だったので調べつつ試しに書いてみました。 index.html <meta charset="utf-8"> <title>DocumentFragment</title> <ul id="list"></ul> <script src="index.js"></script> index.js</meta>…