2 years ago

#66308

test-img

GjilaniIm Kampion

How does jquery load() method affects the bandwidth?

I have two scripts on my server : script A and script B . On script A I want to load the script B every 1 second using this code :

$(document).ready(function() {
  setInterval(function () {
    $('#myid').load('scriptB.html')
  }, 1000);
});

My question now is : if my script B has 10 kB does that mean that every 1 second 10 kB of bandwidth is consumed ?

javascript

jquery

methods

server

bandwidth

0 Answers

Your Answer

Accepted video resources