1👍
Alright, I find the problem. Just in case somebody who might be encountering the same problem without knowing what exactly is the cause. I missed a closing div tag on my html file. This makes the script tag be inside the div tag with class post. Every time append is run, the script tag is inserted into the document. The browser will try to access this script without stopping.
I understand why there is an infinite loop but I don’t get it why jquery will think it is a cached copy and other scripts are also reloaded.
👤seki
Source:stackexchange.com