Any tips greatly appreciated on improving the loading time of my page https://www.bookjawsites.com/map
It incorporates my code and third party code. The third-party code is not what slows the page. What slows the page is my code, the drop-down and search. See below for the code. Any help greatly appreciated!
import wixData from ‘wix-data’;
import wixLocation from ‘wix-location’;
$w.onReady( function () {
$w(“#repeaterResults”).onItemReady(($w, dataItem, index) => {
let linkToDynamicPage = dataItem[“link-RefugeeVoices-title”];
$w(‘#buttonResults’).onClick(() => {
wixLocation.to(linkToDynamicPage);
});
});
$w(‘#repeaterResults’).onItemReady( ($w, itemData, index) => {
$w(“#buttonResults”).label = itemData.title;
});
});
export function dropdown1_change(event, $w) {
let searchValue = $w(‘#dropdown1’).value;
wixData.query(‘1RefugeeVoices’)
.contains(‘placeOfBirth’, $w(‘#dropdown1’).value)
.find()
.then(res => {
$w(‘#repeaterResults’).data = res.items;
$w(“#box3”).expand();
} );
}
export function button1_click(event, $w) {
$w(‘#box3’).collapse()
}