The first loading of JS is incomplete, and automatic reloading causes problems.


as shown in the figure, paper.js is the first to load 477B, which is the wrong size, and then paper.js, is loaded again, which is 9K this time. look carefully and find that the second paper.js load is followed by a timestamp parameter . Our program did not add this parameter, so it is directly referenced by < script src= "paper.js" > < / script >, because the first paper.js loading error caused the program error (even if the second paper.js load is correct).

this problem has not happened under ordinary network conditions, such as our office, branch office, home, etc., but it often happens in the school computer room. Because the school computer room is far away in Hunan, it is too far to go over. I want to use QQ to connect to have a look, but the QQ remote connection has not been successful. Is there any restriction on the school network?

I hope everyone will take a look at it!

Mar.04,2021

normally ? The query string after does not affect the content of the file. However, I see that the initiator of the paper downloaded later is the first paper.js, which generally means that the second js is a load request made from another js rather than a html. Did you see if the contents of this js file are correct?


I guess you can just add a version to < script src= "paper.js" > < / script >


to find the reason. The first request was hijacked by the operator and injected

.
Menu