Initial landing page based on condition

Initial landing page based on condition

I have a main.html with 2 pages (data-role = page) 

Now I see the splash screen then page 1 and page 2 

my functionality required that I go to page 1 or page 2 depending on some condition.

Currently, it shows page 1 and if condition is true goes to page 2

but i dont want that way, i want page 2 visible after the splash if the condition is true,

please gimme some ideas how can I achive this 

thanks in advance  :)

regards
j