Iframe putting too much load on a server

I am using an esp32 cam to run a video stream, and it is running on the same wifi but on a different IP address. and then, with the help of an iframe, I am embedding the esp32 cam server on my webpage both are on the same wifi(localhost). Everything works properly, but the page takes too long to load. The webpage is always in load mode. Here is the screenshot I have marked with a blue sketch:

Here’s is my code .

  async function liveEspCamer() {
    document.getElementById('livecamera').innerHTML = `<p align="right"><iframe src="http://192.168.137.222/" width=400 height="200"></iframe></p>`;
  }

liveEspCamer();
<div id="livecamera">

        </div>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.