User:Poke/sandbox

Firefox
This is what Firefox does. It loads the scripts sequentially and all scripts that are using something from those files get the needed references early enough.

LOAD MediaWiki:CollapsibleTables.js onLoad: MediaWiki:CollapsibleTables.js LOAD User:Poke/GuildWarsWikiTools.js LOAD User:Poke/GuildWarsWikiTools/automaticPatrol.js onLoad: User:Poke/GuildWarsWikiTools.js onLoad: User:Poke/GuildWarsWikiTools/automaticPatrol.js

Chrome
This is what Chrome does. It starts to load all the script files, but starts to execute the scripts that use the files before the load process finished. So Chrome is referencing things that don't exist yet, but are loaded after the script execution.

LOAD MediaWiki:CollapsibleTables.js LOAD User:Poke/GuildWarsWikiTools.js LOAD User:Poke/GuildWarsWikiTools/automaticPatrol.js > Uncaught ReferenceError: CollapsibleTables is not defined onLoad: MediaWiki:CollapsibleTables.js onLoad: User:Poke/GuildWarsWikiTools.js > Uncaught ReferenceError: gwwtAutomaticPatrol is not defined onLoad: User:Poke/GuildWarsWikiTools/automaticPatrol.js

Bla blub...
Section 1, Section 2, Section 3

This is section 1 This is section 2 This is section 3

Bla blub v2...

 * Section 1&emsp; Section 2, Section 3
 * This is section 1.1
 * This is section 1.2


 * Section 1&emsp; Section 2, Section 3
 * This is section 2.1
 * This is section 2.2


 * Section 1&emsp; Section 2, Section 3
 * This is section 3.1
 * This is section 3.2

Main Page/activities

 * Today&emsp; Tomorrow
 * Nicholas Sandford: Baked Husks
 * Zaishen Mission: Jokanur Diggings
 * Zaishen Bounty: Frostmaw the Kinslayer
 * Zaishen Combat: Jade Quarry


 * Today&emsp; Tomorrow
 * Nicholas Sandford: Skeletal Limbs
 * Zaishen Mission: Iron Mines of Moladune
 * Zaishen Bounty: Kunvie Firewing
 * Zaishen Combat: unknown