I posted this on the corvid forum, but I think this is a wix thing. If someone could help I am trying to get this done for tomorrow and the slowness is really effecting my work.
https://www.wix.com/corvid/forum/community-discussion/urgent-keep-having-to-force-exit-editor-crashing-editor-with-new-repeater-element-and-code
I’m not seeing any internal complaints on this. Interesting - can you make a video?
Also: basic things you already know, but I would be a bad friend for not telling you:
1:clear your cache
2: run a speed test online and test your latency (Speedtest.net)
I don’t have a youtube so how can I attach the video I made? I have changed the code so it isn’t hard crashing any more. I’ve cleared my cache a bunch in an effort to trouble shoot. When I used wix speed test for the site I logged 17s for the page I am currently working on.
My general speedtest results are below. I don’t think it is my network.
Spoke too soon. As soon as I add the hide show elements the same error shows and loading in editor is way slower
One Quick update. I solved the coding errors via the corvid forum. Here is the new code. Loading is still atrocious, but I think my page with the repeater is the issue. Could it be the on ready function? I know that changes things. I’ve got other pages to put code into and if this is effecting load times I cannot publish this site with my client’s domain. I currently don’t have it linked to a premium subscription, but that really shouldn’t cause this I don’t think.
I’ve used both safari and chrome with the wix speed test here are the results
Home page loads at 1.4s Cached has 0 code
About page loads at 2.5s-2.8s Not Cached has 0 code
Business directory 11.9s-13.2s Cached
Current site load time 4.1s
import wixData from 'wix-data';
$w.onReady( () => {
$w("#dataset1").onReady( () => {
$w("#repeater1").onItemReady( ($item, itemData, index) => {
let theItem = itemData.companyName; itemData.address; itemData.email; itemData.phone; itemData.website;
$item("#company").text = itemData.companyName;
$item("#address").text = itemData.address;
$item("#email").link = 'mailto:' + itemData.email;
$item("#phone").link = 'tel:' + itemData.phone;
$item("#web").url = itemData.website;
if (itemData.email === null) {
$item("#email").hide();
$item('#email2').hide();
} else {
$item("#email").show();
$item('#email2').show();
}
if (itemData.phone === null) {
$item("#phone").hide();
$item('#phone2').hide();
} else {
$item("#phone").show();
$item('#phone2').show();
}
if (itemData.website === null) {
$item("#web").hide();
$item('#web2').hide();
} else {
$item("#web").show();
$item('#web2').show();
}
});
});
});