MB
Size: a a a
MB
AB
MB
MB
AB
AB
AB
AB
AB
АГ
АГ
let promise = Promise.resolve();
from = 127700;
length = 1000000;
basket = [];
Array.from({ length }, (__, index) => {
promise = promise.then(() => {
return new Promise((resolve, reject) => {
requestAnimationFrame(() => {
test.textContent = String.fromCodePoint(from + index);
if (test.offsetHeight === 345 && test.offsetWidth === 300) {
basket.push(test.textContent);
}
resolve();
});
});
});
});
promise.then(() => {
console.log(basket);
});
АГ
БМ
БМ
ДЗ
ДЗ
ДЗ
ДЗ
ДЗ