12-21-2010 06:41 PM
I am developing an application that exists mostly as a remote web app. I am still using a few native controls. I don't want to invoke the browser because I lose the ability to maintain control of the native application. I used the guide here
to display the web content in a browser field. It works, but it is extremely slow. I can navigate the actual web site very quickly through the browser. When I click a link it takes about 1 second to retrieve and render the content. When I use the application that calls a browser field to navigate the same site, it can take upwards of 10 seconds to render a page after I click a link. It might not sound like much but that's a huge difference. I can't deliver something like that to my users. Is there something I'm missing that would speed this up, or something I'm doing wrong that's slowing it down?
WiFi connection, haven't used 3G, no sim card
Blackberry JRE 6.0.0
Solved! Go to Solution.
12-23-2010 03:57 PM
Does the BlackBerry Torch have any BlackBerry services enabled on it (BES or BIS)? Have you cleared the browsers cache before using it for a time comparison? Try appending ";interface=wifi" to the end of your URL.
12-24-2010 01:28 PM
I am having this issue too!
When I use the browserfield2 to show some html the first time, it takes around 30seconds to display it onto the screen.
Any attempts after that take about a second or 2.
Did you find a solution for your problem??
12-26-2010 03:08 AM
I have completed 2-3 projects using BrowserField2. Yes it is slow as you have explained when compare to normal browser.
Here are the few details from my experience,
1. Time to load HTML is proportional to number of images, JS, CSS and other resource files present in HTML page.
2. Each resource (CSS, JS, images etc) are downloaded individually i.e. each time connection is established to server to download them. (Mark - please correct me if I am wrong on this point)
3. We have kept resources at mobile client and mention its path in HTML content instead of server path. This reduces your load time.
12-27-2010 12:53 PM
I know it is slower than normal browser but i was just trying to print <html>abc</html> and it still took 30 seconds. I am not quite sure if that's normal or not.
12-27-2010 12:56 PM
Ohhh that should be fast... something wrong the way you have implemented.
Can you share more information? I will check tomorrow and let you know if I get clue on issue.
12-27-2010 04:30 PM
Here is a quick snip of my code:
public class ReceiptScreen extends MainScreen
public ReceiptScreen(String receipt) //receipt is the html
VerticalFieldManager fieldManagerMiddle = new VerticalFieldManager();
BrowserField myBrowserField = new BrowserField(new MyBrowserFieldConfig());
I have another class which push this screen onto display by doing:
The 30 seconds delay only happens when I restart the phone/simulator and run my app for the first time. After that, it is back to normal and runs really fast.
01-05-2011 12:03 AM
Can you please share the information which block the rendering with us it might be helpful to us please, because I also face the same issue in the of rendering delay