Hello,
as i have promised, i’m back to give some results.
@yisrael-wix
I tried to do what you said, i changed my code and eleminated all " dataset.onReady() functions", except just “one dataset.onReady() functions”.
I hoped it would realy improve the loading-speed, but i could not see any changes in performance. The repeater do not react faster now then before.
Here an example where i eleminated (deactivated) the onReady-functions…
function startLoadingData (){
if (EndStripStatus === 0 && StartStripStatus === 0 ) {
console.log("Bedingung-1 erreicht!"),
$w('#TXTerror').hide(),
$w('#TXTsuccess').hide(),
$w('#TXTloadingData').hide(),
$w('#IMGloading').hide(),
$w('#BTNloadMoreData').show();
setze_Zählerdaten()
}
else if (StartStripStatus === 0 && EndStripStatus === 1 && Zwischenstatus != "kontakt" && $w('#BOXsearch').isVisible==false && $w('#SWITCHautoscroll').checked==true ) {
console.log("Bedingung-2 erreicht!")
$w('#IMGloading').show(),
$w('#TXTloadingData').show(),
$w('#BTNloadMoreData').hide(),
// $w("#DATAschwarzmarktREAD").onReady( () => {
$w("#DATAschwarzmarktREAD").loadMore()
.then( () => {
$w('#IMGloading').hide(),
$w('#TXTloadingData').hide(),
$w('#BTNloadMoreData').show()
} );
// } );
RepeaterAusgangsgröße = $w("#repeater1").data.length
setze_Zählerdaten()
}
else if (StartStripStatus === 1 && EndStripStatus === 1 && Zwischenstatus != "kontakt" && $w('#SWITCHautoscroll').checked==true) {
console.log("Bedingung-3 erreicht!"),
$w('#GRPcounter').show()
$w('#IMGloading').show(),
$w('#TXTloadingData').show(),
$w('#BTNloadMoreData').hide(),
// $w("#DATAschwarzmarktREAD").onReady( () => {
$w("#DATAschwarzmarktREAD").loadMore()
.then( () => {
$w('#IMGloading').hide('FadeOut'),
$w('#TXTloadingData').hide('FadeOut');
$w('#GRPcounter').hide('FadeOut')
setze_Zählerdaten();
} );
// } );
}
else {
if ($w('#SWITCHautoscroll').checked==false) {
$w('#BTNloadMoreData').show()
setze_Zählerdaten()
}
console.log("Bedingung-4 erreicht!");
}
}
// $w("#DATAschwarzmarktREAD").onReady( () => {
$w('#IMGloading2').hide('FadeOut')
$w('#repeater1').expand()
$w('#repeater1').show('FadeIn')
$w('#ENDSTRIP').expand()
$w('#ENDSTRIP').show('FadeIn')
$w('#SWITCHautoscroll').enable()
setze_Zählerdaten();
// });
…and a few more.
But it took no effect on the performance. Still to slow without any speed-improvement.
Do i do something wrong?
[“@CODE-NINJA Also, the performance will be greatly improved if you limit how many items are displayed in the Repeater, and page the Repeater’s contents.”]
But i created already the possibility to load a specific number of items to the stage and also gave the possibility for switching pages.
Ok, i could make a total limit for examlple of 30-50 items in the column, but even a limitation of 50-items is already not the best end-result.
Already when 30-items are loaded on stage, the loading-time are already very long.
The user has also the possibility to switch sites (page-flip). He can first load 3,4,5 or even more items onto the stage and then do a page-flip (page-switch).
But already if there are 5-items on stage and you try to make a page-switch, the loading-time is already bigger then 10-15 sec.
Yes i am sure, that i have to set a limitation , but my question is, if it is still possible to improve the loading-times and my results in this case are wrong, because i made something wrong in my optimized code?
I hope you can take a look one more time and tell me what i did wrong, because i could not see any effective improvement in loding-times of the items after updating my code (following your instructions).
Big thanks!