PC side WeChat login authorization js multiple request problem
The following is the js code:
The following is the page request:
After adding WeChat login authorization js to the page, there will be dozens of such requests before the page can be loaded completely, causing the page to open slowly, and it takes about 30 seconds to load completely.
I would like to ask if anyone has done something similar?
This function: PC scans the QR code, WeChat receives the login reminder, and after WeChat confirms the login, the PC logs in.
Normally speaking, there is no problem. The page needs to check the authorization status through long polling to determine whether to log in
Check to see if the problem is elsewhere
Added a function for self-tuning. At first there will only be a few such requests, but after a while there will still be many...