X
Tap here to go to the mobile version of the site.

Support Forum

firefox preload none

Posted

Background: I have a couple thousand video links in a page to videos stored on the local memory. The page loads in Chrome in a few seconds but loads in over a minute in Firefox.

I read here... https://hacks.mozilla.org/2010/08/video_preload_attribute/

that I should remove the line...
 controls preload="none"

Even with removing that line from each video it takes fifteen seconds to load the page... which is five times longer than Chrome.

Is there a way to make the page loading comparable in speed to Chrome? Maybe it is still going slower than Chrome because the default still buffers the first frame of each video? Is there a way to tell FF to not buffer the first frame of the video? I only link to the videos ... so don't need the first frame buffered.

It would be nice if the solution would enable the html to be compatible with Chrome as well. I use the page on both Windows and Android platforms.

Background: I have a couple thousand video links in a page to videos stored on the local memory. The page loads in Chrome in a few seconds but loads in over a minute in Firefox. I read here... https://hacks.mozilla.org/2010/08/video_preload_attribute/ that I should remove the line... controls preload="none" Even with removing that line from each video it takes fifteen seconds to load the page... which is five times longer than Chrome. Is there a way to make the page loading comparable in speed to Chrome? Maybe it is still going slower than Chrome because the default still buffers the first frame of each video? Is there a way to tell FF to not buffer the first frame of the video? I only link to the videos ... so don't need the first frame buffered. It would be nice if the solution would enable the html to be compatible with Chrome as well. I use the page on both Windows and Android platforms.
Quote

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36

More Information

jscher2000
  • Top 10 Contributor
8520 solutions 69617 answers

If you have a page of links (<a href>), I don't understand why you would have any video tags that would have or not have a preload attribute.

If you have a page of links (&lt;a href>), I don't understand why you would have any video tags that would have or not have a preload attribute.
Was this helpful to you?
Quote

Question owner

Here is a typical video link of the approx 2,000 on the page...

<input type="checkbox" name="chk" id="0024_air1---chkbx"> <a href="video/ 0024_air1.mp4 " id=" 0024_air1 "> air1 </a> ~~ L-air ~~ aire ~~~ n. air – atmosphere [above 14,000 feet the air is thin]


Here are the page load times and memory usage with and without ... controls preload="none"

 Win7          With     MB         Without    MB
   Chrome      2s       169          Crashes <3GB
   Firefox     16s      500+        5s           <3GB
 Android
   Chrome        2s        ?             2s            ?
   Firefox      68s        ?             14s          ?

Chrome seems to not preload the video content of the links but Firefox does with or without the preload="none".

Here is a typical video link of the approx 2,000 on the page... <p><input type="checkbox" name="chk" id="0024_air1---chkbx"><video name="v" id="0024_air1" style="display:none" controls preload="none"> <source src="video/0024_air1.mp4" type="video/mp4">No support HTML5 video.</video> <a href="video/ 0024_air1.mp4 " id=" 0024_air1 "> air1 </a> ~~ L-air ~~ aire ~~~ n. air – atmosphere [above 14,000 feet the air is thin] </p> Here are the page load times and memory usage with and without ... controls preload="none" Win7 With MB Without MB Chrome 2s 169 Crashes <3GB Firefox 16s 500+ 5s <3GB Android Chrome 2s ? 2s ? Firefox 68s ? 14s ? Chrome seems to not preload the video content of the links but Firefox does with or without the preload="none".

Modified by BobAchgill

Was this helpful to you?
Quote

Question owner

Is this the correct place to ask questions about Firefox... or is there another place?

It just seems odd that Firefox would have such a large memory leak like this. I wonder how many Firefox installations worldwide are wasting user's precious mobile data unknowingly. If just opening a page loaded with href videos starts preloading all the videos on the page... that's not good.

If someone parked for a few minutes on my page with 2,000 video hrefs for a few minutes, not only would they use up half of their monthly 3GB of data on their phone plan but their phone would seriously slow down.

In need some advice on how to tweak my html so that I don't let Firefox preload all my video hrefs.

Is this the correct place to ask questions about Firefox... or is there another place? It just seems odd that Firefox would have such a large memory leak like this. I wonder how many Firefox installations worldwide are wasting user's precious mobile data unknowingly. If just opening a page loaded with href videos starts preloading all the videos on the page... that's not good. If someone parked for a few minutes on my page with 2,000 video hrefs for a few minutes, not only would they use up half of their monthly 3GB of data on their phone plan but their phone would seriously slow down. In need some advice on how to tweak my html so that I don't let Firefox preload all my video hrefs.

Modified by BobAchgill

Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
8520 solutions 69617 answers

Your code includes video players, not just links to videos.

<video name="v" id="0024_air1" style="display:none" controls preload="none"><source src="video/0024_air1.mp4" type="video/mp4">No support HTML5 video.</video>

But preload="none" should work. For example, open the Network Monitor in the lower part of a tab (Ctrl+Shift+e) then load this demo page into that tab to see the difference between not specifying preload and setting it to none:

https://www.jeffersonscher.com/res/videopreload.html

This forum is not focused on developer issues. The following article has suggestions: Where to go for developer support.

Your code includes video players, not just links to videos. <blockquote> &lt;video name="v" id="0024_air1" style="display:none" controls preload="none">&lt;source src="video/0024_air1.mp4" type="video/mp4">No support HTML5 video.&lt;/video></blockquote> But preload="none" should work. For example, open the Network Monitor in the lower part of a tab (Ctrl+Shift+e) then load this demo page into that tab to see the difference between not specifying preload and setting it to none: https://www.jeffersonscher.com/res/videopreload.html This forum is not focused on developer issues. The following article has suggestions: [[Where to go for developer support]].
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.