# Ways to speed up a repeater displaying information?

**URL:** <https://forum.wixstudio.com/t/ways-to-speed-up-a-repeater-displaying-information/29080>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [April 4, 2020, 11:00pm UTC](https://forum.wixstudio.com/t/ways-to-speed-up-a-repeater-displaying-information/29080 "2020-04-04T23:00:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chewycool](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/chewycool/32/669_2.png) [@chewycool](https://forum.wixstudio.com/u/chewycool)\
**Post date:** [April 4, 2020, 11:00pm UTC](https://forum.wixstudio.com/t/ways-to-speed-up-a-repeater-displaying-information/29080/1 "2020-04-04T23:00:17Z")

</div>

I have tried a lot of things to try to get my website to load faster, I need to get information on the repeater to load faster right now it is taking around 10 seconds, I would like this to be at most 5 seconds. The repeater contains no images, it is all text, it also is only loading 7 items currently. Any suggestions on how to get it to display information faster?

---

<div class="post-metadata">

**Author:** ![plomteuxquentin](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/plomteuxquentin/32/9345_2.png) [@plomteuxquentin](https://forum.wixstudio.com/u/plomteuxquentin)\
**Post date:** [April 5, 2020, 10:07am UTC](https://forum.wixstudio.com/t/ways-to-speed-up-a-repeater-displaying-information/29080/2 "2020-04-05T10:07:06Z")

</div>

Hi, I don’t know how you structure your query but usually the slowest thing is the repeater binding.

Do you mind sharing you code?

If you know how to code, you can use custom web component:  
see here how this load 500 items in a repeater like element: [https://www.test.enhancement.studio/elem-repeater](https://www.test.enhancement.studio/elem-repeater)

For the record this code has been provided by Wix, I merely host it 🙂

more info : [https://support.wix.com/en/article/corvid-about-custom-elements-8253009](https://support.wix.com/en/article/corvid-about-custom-elements-8253009)

---

<div class="post-metadata">

**Author:** ![chewycool](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/chewycool/32/669_2.png) [@chewycool](https://forum.wixstudio.com/u/chewycool)\
**Post date:** [April 5, 2020, 5:10pm UTC](https://forum.wixstudio.com/t/ways-to-speed-up-a-repeater-displaying-information/29080/3 "2020-04-05T17:10:47Z")

</div>

Here is my code for the query, but I think I might look into the custom web component.

**if** (wantedFormated \<= currentFormated) {  
wixData.query(“Agenda”)  
.le(“date”, wantedFormated)  
.eq(“completed”, **false** )  
.find()  
.then( (results) =\> {  
**if** (results.items.length \> 0) {  
**let** items = results.items;  
$w(“#agendaRepeater”).data = items;  
$w(“#agendaRepeater”).onItemReady( ($item, itemData, index) =\> {  
$item(“#groupText”).text = items[index].group;  
$item(“#studentLead”).text = items[index].leadStudent;  
$item(“#mentor”).text = items[index].leadMentor;  
$item(“#members”).text = items[index].teamMembers;  
$item(“#task”).html = items[index].descriptionOfJob;  
})  
$w(“#agendaRepeater”).expand();  
}  
**else** {  
console.log(“no items found”);  
$w(“#agendaRepeater”).collapse();  
}  
} )  
. **catch** ( (error) =\> {  
**let** errorMsg = error.message;  
**let** code = error.code;  
} );

Thanks

---

<div class="post-metadata">

**Author:** ![plomteuxquentin](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/plomteuxquentin/32/9345_2.png) [@plomteuxquentin](https://forum.wixstudio.com/u/plomteuxquentin)\
**Post date:** [April 5, 2020, 5:27pm UTC](https://forum.wixstudio.com/t/ways-to-speed-up-a-repeater-displaying-information/29080/4 "2020-04-05T17:27:11Z")

</div>

@chewycool You should format your code when posting

I don’t see anything wrong with your code that could explain it slowness

but here is the “correct” way to bind data

```javascript
$w("#agendaRepeater").onItemReady(($item, itemData, index) => {
   $item("#groupText").text = itemData.group; 
   $item("#studentLead").text = itemData.leadStudent; 
   $item("#mentor").text = itemData.leadMentor; 
   $item("#members").text = itemData.teamMembers; 
   $item("#task").html = itemData.descriptionOfJob;
})

```

You can also increase the speed with this technic:

> **[Velo by Wix: Using HTML template for the better performance](https://shoonia.site/html-template-in-corvid/)**
>
> The $w.Repeater most popular element on Wix sites and it's the first killer of performance. In this article, we look at how we can do the repeater faster

---

<div class="post-metadata">

**Author:** ![wixuser](https://avatars.discourse-cdn.com/v4/letter/w/53a042/32.png) [@wixuser](https://forum.wixstudio.com/u/wixuser)\
**Post date:** [July 2, 2020, 10:52pm UTC](https://forum.wixstudio.com/t/ways-to-speed-up-a-repeater-displaying-information/29080/5 "2020-07-02T22:52:35Z")

</div>

How did you create the repeater in the test website you listed? It loads super fast, how would i design something like this in wix with that kind of speed, i want to load ~500 elements
