回答編集履歴
1
ちょうせい
answer
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
.then(res=>res.text())
|
|
7
7
|
.then(txt=>new DOMParser().parseFromString(txt,'text/html'))
|
|
8
8
|
.then(dom=>[...dom.querySelectorAll('.loader > *')])
|
|
9
|
+
.then(arr=>arr.reduce((x,y)=>x.appendChild(y),document.createDocumentFragment()))
|
|
9
|
-
.then(
|
|
10
|
+
.then(frg=>box_01.appendChild(frg));
|
|
10
11
|
});
|
|
11
12
|
```
|