Theme init: runs synchronously to prevent flash of wrong theme