摘要 |
A method in a client web browser (31) for loading, initializing, and running Document Object Model, DOM, modules asynchronously. Each module is separated (63) into a module template (36) that includes tags (39) to be replaced with data, and a module Driver (37) that includes an identifier tag (41), functional code (44) controlling the operation of the Driver, a driver variable, and a display variable (42). The functional code causes the Driver to populate (64) the identifier tag with an internal identifier for the module, thereby creating a unique class attribute for the Driver. The Driver may also set (65) the driver variable to reference the Driver, thereby loading the functional code into memory and removing the Driver from the DOM. The Driver may also set (66) the display variable (42) to reference in the module template (36). a DOM element immediately prior to the Driver, thereby sandboxing all actions by the Driver into the referenced DOM element in the template. |