< BACK

Alloy and Titanium Studio, Part 3. Lazy Load Windows and Tabs

Speed. We don’t wait for anything. In this short tutorial I’ll show you my method to lazy load data as you need so your app bootstraps fast. Let’s say you have an API you get data from, and you have a Tab with a Window inside, inside the Window you do all the magic and the data you get from your API shows up. I’m not gonna cover that part. You probably also have a login window, and once the user signs in, then you load the rest of the app. But, if you wait until your server gives you the data to bootstrap it’s gonna take a few seconds to load the app. So, what do I do?

Let’s code a simple tab with a window, our files will be myWindow.xml and myWindow.js

myWindow.xml

// Magic goes here

Share this: