JSFiddle - React, Tailwind, and code Playground

by bcaudan

HTML

<!DOCTYPE html>
<html lang="en">
  <head>
    <script>
      function generateLongTask(duration) {
        const origin = new Date().getTime()
        while (new Date().getTime() < origin + duration) {}
      }
      generateLongTask(500)
    </script>
  </head>
  <body>
    <p>500 ms long task</p>
   
  </body>
</html>