есть штатный способ, который я не могу найти в доках?https://laravel.com/docs/6.0/eloquent-resources
while ($row = mysqli_fetch_assoc($res)) {
...
}
function startAfter (delay, callback) {
const elapsed = Date.now() - performance.timing.navigationStart
if (elapsed >= delay) {
callback()
} else {
setTimeout(callback, delay - elapsed)
}
}
document.addEventListener("DOMContentLoaded", () => {
startAfter(2000, () => console.log("DOM fully loaded and parsed"))
})