# Ionic Load Data from SQLite before Rendering

**URL:** <https://forum.ionicframework.com/t/ionic-load-data-from-sqlite-before-rendering/117837>\
**Category:** ionic-v3\
**Created:** [January 10, 2018, 3:24pm UTC](https://forum.ionicframework.com/t/ionic-load-data-from-sqlite-before-rendering/117837 "2018-01-10T15:24:55Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![anna\_liebt](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@anna\_liebt](https://forum.ionicframework.com/u/anna_liebt)\
**Post date:** [January 10, 2018, 4:11pm UTC](https://forum.ionicframework.com/t/ionic-load-data-from-sqlite-before-rendering/117837/6 "2018-01-10T16:11:54Z")

</div>

Hello,  
I. m a bloddy beginner in javascript and the whole web stuff, but thanks to @AaronSterling I learned today, if you are waiting for two ore more independed promises, it is maybe a good idea using  
`promise.all([apromise, anotherpromise]) .then`  
That waits for all promises in that array, before it execute then  
Look here [How to return the result of this function](https://forum.ionicframework.com/t/how-to-return-the-result-of-this-function/117782/26?u=anna_liebt)

Best regards, anna-liebt

Ps should go to @mhtchong

---

_[View the full topic](https://forum.ionicframework.com/t/ionic-load-data-from-sqlite-before-rendering/117837)._
