Answers for "js waiting element exist"

0

js waiting element exist

while(!document.querySelector(".my-selector")) {
  await new Promise(r => setTimeout(r, 500));
}
// now the element is loaded
Posted by: Guest on October-15-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language