Hi,
You can hide the text on load, then place the .show() after the query finish ( inside the .then ). So, your code should look something like this:
$w.onReady( function () {
wixData.query("myCollection")
.find()
.then( (results) => {
// this will only run once the query has returned results
$w("#text").text = "Hola" + userName + "!";
$w("#text").show();
} );
// code here will run before the query has returned results
} );
Hope this helps!
Best,
Mustafa