jquery.html5loader icon indicating copy to clipboard operation
jquery.html5loader copied to clipboard

http request twice of media files.

Open jackyon opened this issue 8 years ago • 8 comments

I just found there is one weird issue happened with html5loader: all the media files are request twice (mp4, mp3...), but the images files are okay to just request once.

screen shot 2015-07-09 at 9 37 50 am screen shot 2015-07-09 at 9 28 20 am

Plz advise how to avoid this issue. thx.

jackyon avatar Jul 09 '15 01:07 jackyon

this totally slown down my sites, I have been debug this issue for one day, but still can't found any solution. plz help!

jackyon avatar Jul 09 '15 01:07 jackyon

I found other people who using jquery.html5loader also happening the same issue:

example: http://paybas.com/test/ demo from: https://github.com/GianlucaGuarini/jquery.html5loader/issues/26

screen shot 2015-07-09 at 10 12 42 am

jackyon avatar Jul 09 '15 02:07 jackyon

http://www.createjs.com/preloadjs

looks like this js have function to check if the files were exist then cancel to load it again.

screen shot 2015-07-09 at 10 20 26 am

can you add this feature too? thx.

jackyon avatar Jul 09 '15 02:07 jackyon

This could be a nice feature. I will see whether I could add this soon. BTW you can try avoiding to preload and embed in the page the same files

GianlucaGuarini avatar Jul 09 '15 06:07 GianlucaGuarini

“avoiding to preload and embed in the page the same files”

sorry for my poor english, I can't get your point. Did you mean remove the mp3, mp4 from json file?

thx.

jackyon avatar Jul 09 '15 13:07 jackyon

I mean, just use the files.json to load your page media files, avoiding to print them in the html page. You can inject them in your page via javascript only when they will be loaded

GianlucaGuarini avatar Aug 01 '15 13:08 GianlucaGuarini

thx, now I got the point!

jackyon avatar Aug 03 '15 01:08 jackyon

I included my videos in JS. But there is a problem. It returns me 100% when we see that Chrome still load the media.

A solution ?

Thank you

kevingobert avatar Jul 01 '16 15:07 kevingobert