Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#14387 closed enhancement (fixed)

Loading of deviceTheme with a script tag

Reported by: ykami Owned by: ykami
Priority: high Milestone: 1.8
Component: DojoX Mobile Version: 1.7.0
Keywords: Cc: Adam Peller, Bill Reed
Blocked By: Blocking:

Description

deviceTheme loads theme CSS files programmatically with dojo code, and thus the theme CSS files are often loaded after widget code. This could lead to initialization problems for some widgets as reported #13429. The problems could be avoided if deviceTheme can run before dojo.js does.

Change History (5)

comment:1 Changed 7 years ago by ykami

Cc: Adam Peller Bill Reed added

comment:2 Changed 7 years ago by ykami

Resolution: fixed
Status: newclosed

In [27261]:

Fixes #14387 !strict In addition to the current usage, now deviceTheme.js can also be loaded with a script tag prior to dojo.js to ensure that the theme CSS files are loaded before widget initialization starts.

comment:3 Changed 7 years ago by ykami

In [27263]:

Fixes #14387 !strict When deviceTheme is loaded from a script tag, common.js has to pass the dojox.mobile object to deviceTheme to share the status.

comment:4 Changed 7 years ago by ykami

In [27396]:

Refs #14387 !strict Removed unused code.

comment:5 Changed 7 years ago by ykami

In [27750]:

Refs #14387 !strict Fixed a problem where mblUserAgent didn't work.

Note: See TracTickets for help on using tickets.