https://bugzilla.wikimedia.org/show_bug.cgi?id=27488

Nux <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #35 from Nux <[email protected]> 2011-05-04 23:43:18 UTC ---
Just to let you now - this DOSE NOT fix the original issue and probably won't
fix most of the issues mentioned here.

As I already tried to explain - the problem is a gap between the time when a
page is apparently ready and when it is ready for usage. The original problem
also mentions that there is no way to run scripts immediately which might have
been used e.g. to make more dramatic changes to appearance of a page to suit
needs of users of various MW installations. This all worked fine before 1.17
and can be easily fixed by moving all scripts where they should be until you
can provide something more elegant.

BTW. I've made a class that allows users to really decide when and how to load
their modules and there is no need to move scripts to the bottom to load
scripts asynchronously. You can see it here:
http://pl.wikipedia.org/wiki/User:Nux/common.js

It could probably be done better, but for now it works. I can for example load
popups strings before page is fully ready and popups core (which is very heavy)
after the page is ready.

Please do make some more tests because currently you are making scripts load in
order which is not cross-browser and not really predictable (check e.g Chrome
against Opera). From my tests the only cross-browser way to load scripts in
order is to use script tags in head and only from them load something else
(either synchronously or asynchronously depending on your needs).

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to