01-03-2014 02:27 PM
I am testing Cascades WebView and I noticed that its scrolling and zooming performance is not as good as the native BlackBerry browser (which I guess is written in Cascades). The problem is that the native browser disable the page rendering (backing store I guess) when the scrolling is started and enable when stopped. Now, how can I have the same perfomance with Cascades WebView? Is there any way to control the rendering of Webview?
Solved! Go to Solution.
01-04-2014 09:12 AM
I can't answer the main part of your question, but I can tell you with certainty (based on comments here by BlackBerry employees) that the BlackBerry Browser is written in HTML5.
01-04-2014 09:59 AM
I didn't know that,this means that the native browser uses a dfferent web engine( altough if you you go to html5test.com, you get the same score with Cascades Webview ).Do you know if the native browser is based on WebKit2?
01-04-2014 10:17 AM
Don't confuse the UI with the renderer. AFAIK both the BlackBerry Browser and WebView use the same WebKit renderer (sorry, I don't know which version). It is the UI of the BB Browser (which would include scrolling behaviour) that is built with HTML5.
01-04-2014 10:20 AM - edited 01-04-2014 10:20 AM
01-04-2014 11:13 AM
01-04-2014 11:41 AM
Thank you for clarifying the situation, probably it's like you said, but then it's impossible to reach the browser performance with Cascades Webview since we don't have access to its source code, am I right?
01-04-2014 11:48 AM
Yes, that would be a fair assessment. There are some known differences between the two renderers. For instance, WebView just ignores "anchor hashes" on the tail of a URL, whereas the BB Browser jumps to the anchor as it should. To make WebView treat anchor hashes properly you have to execute additional code after the page has finished loading. For this reason I think it is fair to say the although they are both based on WebKit, the two are definitely not identical.
If you feel you got a useful answer to your question, please remember to accept one of your or my posts as the solution.
01-04-2014 03:25 PM
One thing that occurred to me after my last post is that if you really need control over your renderer there is nothing stopping anyone from download WebKit source code and compiling it for BB10. I don't think anyone is doing this since WebView is pretty powerful, despite its shortcomings, but it should be possible, and then you can tweak it for performance to your heart's content.