Explanation:
This issue occurs because Chrome allows up to 6 open connections by default. For example, if you simultaneously transfer several multimedia files from tags 6 <video> or <audio> , the 7th connection (for example, an image) will simply freeze until one of the sockets opens. Usually, an open connection closes after 5 minutes of inactivity, and therefore you see that your pngs are loading at that moment.
Solution 1:
You can avoid this by minimizing the number of media tags that support an open connection. And if you need more than 6, make sure that you download them for the last time, or that they don’t have attributes like preload="auto" .
Solution 2:
If you are trying to use several sound effects for a web game, I highly recommend that you use SoundJS. This is a great tool for playing a large number of sound effects / music tracks at the same time.
Solution 3: Public Key Public Sockets (not recommended)
If necessary, you can force open sockets in your browser (only in Chrome):
- Go to the address bar and type
chrome://net-internals . - Select
Sockets from the drop-down menu. - Click the
Flush socket pools button.
This solution is not recommended because you should not expect your visitors to follow these instructions to browse your site.
Marquizzo Apr 15 '15 at 0:15 2015-04-15 00:15
source share