0

pages load slowly on mobile device

asked 2011-11-24 01:23:30 +0800

peterspitz gravatar image peterspitz
36 1

Hi.

I created a simple login page that has just a few fields on it (labels, text fields, a button). When I load this page in the browser on my desktop computer, it loads pretty quickly (about a second). But when I try loading it on an iPhone 3G or a BlackBerry, it takes much longer (about 8 seconds or even more sometimes).

I'm using version 5.0.9 of ZK.

Am I doing something wrong? Here is the content of the .zul file for the page.

<?page title="ZK Store - Login"?>
<?link type="text/css" rel="stylesheet" href="skins/mobile_s_v.css"?>

<window xmlns:h="http://www.w3.org/1999/xhtml"
	id="loginWin" border="normal" width="100%" height="100%"
	title="You are using: ${desktop.webApp.version}"
	position="center,center">

	<h:img src="image/CrisysLogoRedTransparent.gif" alt="logo" width="300" height="130" />
	<label class="important">Xpert</label>
	<label class="super" pre="true" value="Disaster"></label>
	<h:br>
	</h:br>
	<h:br>
	</h:br>
	<label class="label" style="padding-top:5px;padding-bottom:5px;padding-right:5px;padding-left:5px;">Enter your user name:</label>
	<textbox id="nameTxb" class="textBox" style="padding-top:5px;padding-bottom:5px;padding-right:5px;padding-left:5px;width:100%" />
	<h:br>
	</h:br>
	<h:br>
	</h:br>
	<label class="label" style="padding-top:5px;padding-bottom:5px;padding-right:5px;padding-left:5px;">Enter your password:</label>
	<textbox id="passwordTxb" type="password" class="textBox"  style="padding-top:5px;padding-bottom:5px;padding-right:5px;padding-left:5px;width:100%" />
	<h:br>
	</h:br>
	<h:br>
	</h:br>
	<button id="confirmBtn" class="button width100" label="Log in" forward="onOK" />
	<h:br>
	</h:br>
	<h:br>
	</h:br>
	<label id="mesgLbl" />
</window>

Thanks for any help,
Peter

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2011-11-24 13:09:20 +0800

zippy gravatar image zippy
504 1 2

zk is heavy process

link publish delete flag offensive edit

answered 2011-11-24 14:59:04 +0800

peterspitz gravatar image peterspitz
36 1

Thanks, zippy. When you say "zk is heavy process", do you mean there's no way I can make it fast enough to run using mobile devices? Or is there a way to speed it up?

Thanks,
Peter

link publish delete flag offensive edit

answered 2011-11-29 09:35:22 +0800

paowang gravatar image paowang
140 6

I think, Zippy has already posted an issue about this situation:
http://tracker.zkoss.org/browse/ZK-574

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-11-24 01:23:30 +0800

Seen: 184 times

Last updated: Nov 29 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More