Large

YouTube Enhancer

By GIJoe Last update Dec 13, 2011 — Installed 1,194,463 times.

opera 10 delayed load

in
Subscribe to opera 10 delayed load 11 posts, 4 voices



stwart User
OperaWindows

In opera 10.01 this script only is run after all video be downloaded.
It is possible that you adapt so that it at the beginning of the video download.
Like in this http://userscripts.org/scripts/show/36453 .

thanks.

 
GIJoe Script's Author
SeamonkeyMacintosh

I've didn't set any delay in the script... I don't know why there one.

The "but not all works like in Firefox" is not here for nothing.

Reloading the page may help.

 
lwiczek User
OperaWindows

Hi,
instead of creating a new topic I've decided to bump this one. I have the same problem - the script loads only after page stops loading which is after the vide is buffered 100%. Would it be possible to load script before?

 
Barthez User
OperaWindows

1. Change script extension form user.js to .js ;
2. Wrap script with fallowing:

window.addEventListener("DOMContentLoaded", function() {


...script goes here...


}, false);

3. Be warned though: i didn't test it in 10.5x since there were some problems with script working correctly (possibly due to Opera bug). It did work in 10.1 and 10.5x problems seems to be sort-out so you can give it a try now.

Please report back in and tell us if it did work :)

Thanks,
 Barthez

 
GIJoe Script's Author
SeamonkeyMacintosh

@lwiczek
What version of Opera do you use ?
Did you try on a clean profile ?

@Barthez
You don't need the wrap. the script wait for the page to be in the "complete" state.

 
lwiczek User
OperaWindows

@Barthez (wow, wasn't expecting to see you again (: )
Anyhow - proposed modifications didn't quite work. Yes, the script loaded earlier but the videos stopped to load at all

@GIJoe
I use 10.10 (same line as 10.01, only 10.50 is 'different'). The whole problem is that there is need for some hack. You've said that the script waits for the page to load, and with the (new?) youtube it doesn't load till every ajax stuff is loaded *AND* video completes buffering. The latter is especially annoying because I'd like to use "prevent autoplay" option. I'm aware, that 10.10 is older version, but 10.50 still has way to much issues for me to use it on the daily basis (and I'm an Opera user since verion 7, which is a lot of time...)

 
GIJoe Script's Author
SeamonkeyMacintosh

Well, it's different with me... version 10.51 is the most stable version since the version 9.
The only thing i have done is to clear my profile because it's seems that Opera bug a lot after updating with the olds data.

and with the (new?) youtube it doesn't load till every ajax stuff is loaded *AND* video completes buffering.
I got also that with the old Opera browsers.

Also, it's better to upgrade to 10.51 because of the localStorage. (to save options)

If you used an old version with an "Emulated GM function" script, and you upgrade to 10.50 or more, you can drop the "Emulated GM function" script (and don't forget to clear your cookies).

 
lwiczek User
OperaWindows

Don't get me wrong. I'm fully aware that after every major opera upgrade it's better to use clean profile, etc. but it's not the case here. I've checked it also on clean profile (both in 10.10 and 10.50) and what's surprising - the behaviour of the page/script. Both in 10.10 and 10.50 the page isn't in the 'loaded' state until the ajax finishes and the video isn't completely buffered. BUT, in the 10.50 script is loaded despite that and in the 10.10 it waits until the page finishes loading or it's 'stopped' (in the latter case, video stops and script loads).
I guess it has something to do with opera's handling of loaded page state (i.e. 10.50 treat page as loaded when the document is loaded without waiting for the elements embeded to load - my guess at least)

 
GIJoe Script's Author
SeamonkeyMacintosh

10.50 is bugged, did you try with the 10.51 ?

 
lwiczek User
OperaWindows

It was a generalization. By 10.50 I meant whole 10.5x line. And yes - I'm testing every snapshot that is posted on Opera DesktopTeam Blog, currently 10.52 build 3344. But this is kinda besides the point? When Opera 10.5x reaches previous level of stability and funtionality then I'll switch to it. For the moment I'll stick with the good ol' 10.10 - ok?

Back to the subject - would it be possible to make the script work in 10.10?

 
GIJoe Script's Author
SeamonkeyMacintosh

Well... it's a bug in all opera before 10.51, so i can't do nothing.

Also... Reloading the page may help.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel