Maybe you can try this.
Keep the code in your on ready function.
Collapse the repeater.(in the property panel of the repeater)
Next ad a code bellow the code you added in the $w.onready
Where you say something like
$w(“#dataset”).onReady(()=>{
$w(“#repeater”).expand()
})
Its a long shot but it migh work.
I’m not at a computer atm and i’m olmost of to bed.
If it aint working i will reply as soon as possible
Kind regards,
Kristof.