How to preload a csb file?

When load a csb file,there are two steps:
----- First step: CSLoader::createNode()
----- Second step: CSLoader::createTimeline()
**I test three csd files and found, the second step takes 10 times as much time as the first step.For example:
----- The first step spend time : 60 millisecond
----- The second step spend time : 590 millisecond
I also find the second step has cached the data

My question is: How to preload a csd file?
Please give me a code for example!

Do you want to preload csb file asynchronously?

It is not mater load csb file asynchronously or synchronously.
Synchronously load csb file is also ok .

So just load them at init of your scene and retain, for later use.

Or slightly different - I’ve implemented Loading Screen like this. In init I’m showing some loading background, schedule update (once) and in update I’m loading all data.

or use std::thread and just load them while the user starts playing your game or behind the scenes someplace.

I don’t know but loading csb probably will probably calls Sprite:create for objects, which will be done in another thread, so you should create another EAGLContext, am I right? However, from my experience with cocos2d-iphone when I did so, it worked but sometimes produce just black square sprites…
Interesting to have a working & tested demo project with example of loading cocos scenes with sprites with loading scene and animation running on it.