Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Trusted Contributor
Posts: 118
Registered: ‎03-06-2013
My Device: Blackberry Z10
My Carrier: Airtel
Accepted Solution

black screen shown before loading a big html file in bb10


i have a problem here,

I am loading 2 htmls as part of my application.

1. index.html with a video which plays first .

2. after index.html i load on video play end home.html.

problem here is, before index.html loads i can use rim:splash in bb10 

after index.html, before loading home.html i get a black screen , as it takes time in loading home.html as home.html as lot of sections and js files to load.

how to avoid this black screen before loading my home.html. 

please help me out.

- If a post contains the solution to the problem, please click "Accept as Solution"
- If a post contains helpful content, please give it a "Thumbs Up"

Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: black screen shown before loading a big html file in bb10

The black screen you are seeing is caused by not having any content to display to your user before it is available.  You  can either first show an activity indicator to let your users know something is happening (example: https://github.com/blackberry/bbUI.js/wiki/Activity-Indicator) or optimize your application so that users spend less time waiting on resources to load, and more time enjoying your content.


Time to focus on performance best practices.  Check out this awesome resource for tips: http://browserdiet.com/


You mention you have a lot of JS files to load - make sure they are not blocking your UI, and that they are being loaded after page content is first displayed (otherwise your users are stuck waiting).

Follow me on Twitter: @n_adam_stanley
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Posts: 434
Registered: ‎07-23-2012
My Device: Blackberry 10
My Carrier: Orange

Re: black screen shown before loading a big html file in bb10

by moving video tag as a section under home.html you can resolve this issue :-)

Press the Accept as solution Button when u got the Solution
Press Kudo to say thank to developer.