Home > front end >  The HTTP request process
The HTTP request process

Time:01-22

Browser sends a request to the server. The server to the browser response HTML and CSS, js file. Then send the next request. Response for the last file?
A simple example. A web page have A.h HTML and a. s files on A web page with A click event. Click get the B.h after sending A HTML and B.j s B.j s defined in the global variable and method names are same and a. s.
Don't know when was the last time after the request of the HTML, js, CSS files, such as go to which. So worry about the problem of variable, or method name name repetition

CodePudding user response:

After completion of A page is loaded, js files are parsed into the memory,
If the loading B.j s again, will also new js file to load the video content into memory, so the memory, variable and method names if there are conflicts, are new to cover the old,
Has nothing to do with the file

CodePudding user response:

reference 1st floor wz_307 response:
after completion of A page is loaded, js files are parsed into the memory,
If the loading B.j s again, will also new js file to load the video content into memory, so the memory, variable and method names if there are conflicts, are new to cover the old,
Has nothing to do with the file
thank you
  • Related