Hi,
I've built a WRT App - it's simple a list of bands playing at a festival and details of them. It uses a jquery accordion script to show/hide band details. However, there are 83 bands and each has some text, and an image. Whilst development has been fine, when I finally put it on the handset (N97Mini) it took nearly 50 seconds to load.
Therefore my questions are -
- Is there a simple code example out there to put a loading screen on a WRT app?
- Or, have I done my code wrong in that it's talking so long to load? The code from the index.html file is shown below - this is for one field (there are 82 others the same).
- Should I be pre-loading images, or loading only on demand? Bear in mind I don't know how to do either!!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<HTML><HEAD><META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>Nokia Recommends</TITLE>
</HEAD><BODY style="background-color:#004787;">
<SCRIPT type="text/javascript" src="accordion_files/jquery.js"></SCRIPT>
<SCRIPT type="text/javascript" src="accordion_files/accordion.js"></SCRIPT>
<SCRIPT type="text/javascript">
jQuery().ready(function(){
// applying the settings
jQuery('#theMenu').Accordion({
active: 'h3.selected',
header: 'h3.head',
alwaysOpen: false,
animated: true,
showSpeed: 200,
hideSpeed: 400
});
jQuery('.xtraMenu').each(function(index) {
$(this).Accordion({
active: 'h4.selected',
header: 'h4.head',
alwaysOpen: false,
animated: true,
showSpeed: 200,
hideSpeed: 400
});
});
jQuery('h3.head').each(function(index) {
$(this).bind('click', function() {
jQuery('ul.band_info').hide();
jQuery('ul.xtraMenu h4.head').removeClass('selected');
});
});
});
</SCRIPT>
<style type="text/css">
a:link, a:visited {
text-decoration: none;
}
body {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
}
h3.head a{
color:#ffffff;
}
div.band_info{
color:#004787;
}
ul.headline a{
color:#004787;
}
h3.head{
background:url("styles/greybg.png") repeat-x scroll 50% 50% #EDEDED;
cursorointer;
font-weight:bold;
font-size:20px;
font-family:Verdana, Geneva, sans-serif;
margin-bottom:0px;
padding:5px;
text-transform:uppercase;
color:#ffffff;
border:1px solid #004787;
}
h3.selected{
background:url("styles/selected.png") repeat-x scroll 50% 50% #8AB61C;
color:#FFFFFF;
height:20px;
text-decoration:none;
border :none
}
h3.selected a{
color:#FFFFFF;
text-decoration:none;
}
h4.head{
background:url("styles/blackbg.png") repeat-x scroll 50% 50% #8AB61C;
color:#ffffff;
padding:5px;
margin:0px;
}
h4.head a{
text-decoration:none;
font-family:Verdana, Geneva, sans-serif;
color:#ffffff;
}
h4.selected{
background:url("styles/selected.png") repeat-x scroll 50% 50% #8AB61C;
border:1px solid #004787;
color:#FFFFFF;
/*height:20px;*/
text-decoration:none;
}
h4.selected a{
color:#ffffff;
}
ul#theMenu{
list-style-type:none;
padding:0px;
margin:0px;
text-align: left;
}
ul#theMenu ul{
list-style-type:none;
}
ul#theMenu li.topact{
padding:0px;
margin:0px;
}
li.band_info_hold{
border:#004787 1px solid;
margin-bottom:3px;
background:#ffffff;
float:left;
width:98%;
}
ul.band_info{
padding:0px;
margin:0px;
}
ul.headline{
background:#ececec;
padding:10px;
margin:0px;
}
ul.xtraMenu{
padding:0px;
margin:5px;
float:left;
width:98%;
}
li.bandprofile{
margin-top:10px;
}
div.nokiarecommends{
width:100%;
background:#004787;
text-align: left;
}
div.toptext{
text-align: left;
color:#ffffff;
font-family:Verdana,Geneva,sans-serif;
font-size:18px;
padding-left:6px;
padding-bottom:5px;
}
div.artisttext{
text-align: left;
color:#004787;
font-family:Verdana,Geneva,sans-serif;
font-size:18px;
padding-left:6px;
padding-bottom:5px;
padding-right:5px;
}
div.footertext{
text-align: left;
color:#ffffff;
font-family:Verdana,Geneva,sans-serif;
font-size:12px;
padding-left:6px;
padding-bottom:5px;
}
div.headliner h4.head{
background:url("styles/selected.png") no-repeat scroll 50% 50% #8AB61C;
border:1px solid #004787;
font-family:Verdana,Geneva,sans-serif;
font-size:20px;
font-weight:bold;
height:23px;
padding-top:5px;
text-decoration:none;
}
div.headliner h4.head a{
text-decoration:none;
}
div.topimg {
overflow: hidden;
padding-right: 0px;
}
img {
padding-right: 5px;
}
li.topact{
background:#004787;
float:left;
width:98%;
}
div.headliner{
background:none repeat scroll 0 0 #ffffff;
float:left;
margin-bottom: 5px;
}
</style>
<div class="nokiarecommends">
<div class="topimg">
<img src="styles/logo-recommends.png" />
</div>
<div class="toptext">
Touch the name of an artist to view further details, on-stage details, and up to 3 other similar artists recommended to see at Oxegen 2010
</div>
<ul id="theMenu">
<li class="topact">
<h3 class="head" style="margin:0px"><a href="#acc">FATBOY SLIM</A></H3>
<div class="headliner">
<img src="accordion_files/fbslim.jpg" align="left" />
<div class="artisttext">Fatboy Slim, is an English DJ, big beat musician, record producer and pioneer of the electronic dance genre.
</div></div>
<div class="toptext">If you like the above artist, then Nokia also recommends...
</div>
<ul class="xtraMenu">
<li class="band_info_hold">
<H4 class="head"><A href="javascript:;">30 SECONDS TO MARS</A></H4>
<ul style="display: none;" class="band_info">
<li class='bandprofile'>
<img src="accordion_files/30seconds.jpg" align="left" />
<div class="artisttext">30 Seconds to Mars is an American rock band from Los Angeles, formed in 1998. Since 2007, the band has been composed of actor Jared Leto (lead vocals, rhythm guitar, songwriter), Shannon Leto (drums, percussion) and Tomo Miličević (lead guitar, keyboards). </div>
</li>
</ul>
</li>
<li class="band_info_hold">
<H4 class="head"><A href="javascript:;">PRODIGY</A></H4>
<ul style="display: none;" class="band_info">
<li class='bandprofile'>
<img src="accordion_files/prodigy.jpg" align="left" />
<div class="artisttext">The Prodigy are an English electronic dance music group established by Liam Howlett in 1990 in Braintree, Essex. Along with Fatboy Slim, The Chemical Brothers and The Crystal Method, as well as other acts, members of the Prodigy have been credited as pioneers of the big beat genre which achieved mainstream popularity in the 1990s and 2000s, and are known for high-quality live performances. They have sold over 20 million records worldwide which is unequalled in dance music history.</div>
</li>
</ul>
</li>
</ul>
<div class="footertext">© Nokia 2010 Developed by MobaNode www.mobanode.com
</div></div>
</body></html>

ointer;
Reply With Quote



