Rolling out improvements to Velo sites rendering

Problem 1:
The ‘event’ argument of nested checkbox is different in preview mode than the live site.
I have a checkbox group inside a repeater that essentially separates collections (A, B, C) into sub-collections (1, 2, 3) and then filters the dataset based on combined selection across the checkbox selection ( A1, B2, B3, C1, C2). It works properly in preview mode but not after publishing. After some testing the issue seems to come from this part of the code.

export function collectionCheckBox_change(event) {
 let $repeater = $w.at(event.context)
 let parent = $repeater('#collectionParent').text
 let child = $repeater('#collectionCheckBox').value
  collectionFilterSelection[parent] = child
  reloadProductsBasedOnFilter()
}

Since wix doesn’t allow alert() and console.log() doesn’t work for published sites, I created two text fields and used the following to see the value of the event variable.

export function collectionCheckBox_change(event) {
 let $repeater = $w.at(event.context)
 let parent = $repeater('#collectionParent').text
 let child = $repeater('#collectionCheckBox').value
 
 // set text to variables to test on published page itself rather than preview
  $w('#TESTING').text = event.context.itemId
  $w('#TESTING1').text = event.context.id
  collectionFilterSelection[parent] = child
  reloadProductsBasedOnFilter()
}

In preview mode it would give me the corresponding number of the repetition in the repeater for ‘context.itemId’ and ‘comp-kgrqwa7s’ for the ‘context.id’. However on the live site it doesn’t return any value in the and just sets the texts blank. Since it doesn’t get the context of the event, the ‘parent’ and ‘child’ declarations to just retrieve the default values of those elements instead of the actual selected values which causes the filtering to return nothing. Again the code works in preview mode but not on the live site.

Problem 2:
Product images no longer altering correctly
Again this works in preview, but not on the live site. I have not been able to figure out the root of the issue though.

//fading is a global variable to indicate that the image is fading as a fading image returns true for .isVisible. If you use .show() while an image is still fading, the .show() has no effect.
export function productContainer_mouseIn(event) {
 let product = $w('#productsRepeater').data.find(obj => obj._id === event.context.itemId)
 let $repeater = $w.at(event.context)
 if (product.mediaItems.length > 1){
    alterImage($repeater, product)
  }
}

// Alters image by showing and hiding productImageEven, when it is shown, the next image for productImageOdd is loading, when it is hiding, it is loading
async function alterImage ($repeater, product){
 let first = true
 let i = 1
 let top = $repeater('#productImageTop') 
 let bottom = $repeater('#productImageBottom')
  fading = true
  top.hide('fade', defaultFadeOptions) // hide top otherwise the first fade will have a delay
 
 // loops to change image 
  productGalleryImageOnHover = setInterval(async function (){
    i += 1
 if(i >= product.mediaItems.length){
      i = 0
    }
 if(first === true){
      top.src = product.mediaItems[i]['src']
      top.tooltip = product.description
      first = false
      fading = false
    }
 else if(top.isVisible === true){
 // hide top, load top
      fading = true
 await top.hide('fade', defaultFadeOptions)
      fading = false
      top.src = product.mediaItems[i]['src']
      top.tooltip = product.description
 
    }
 else{
 // show top, load bottom
      fading = true
 await top.show('fade', defaultFadeOptions)
      fading = false
      bottom.src = product.mediaItems[i]['src']
      bottom.tooltip = product.description

    }
  },2500)
}

export function productContainer_mouseOut(event) {
  clearInterval(productGalleryImageOnHover)
 let $repeater = $w.at(event.context)
 let product = $w('#productsRepeater').data.find(obj => obj._id === event.context.itemId)
 let top = $repeater('#productImageTop')
 let bottom = $repeater('#productImageBottom')
 let productMedia = product.mediaItems
 if(fading === true){
 var resetImage = setInterval(async function(){
 if(top.isVisible === false){
        top.src = productMedia[0].src
        top.show('fade',defaultFadeOptions)
        clearInterval(resetImage)
      }
    },0)
  }
 else{
    top.src = productMedia[0].src
    top.tooltip = product.description
    top.show('fade',defaultFadeOptions)
  }
 if (productMedia.length > 1) {
    bottom.src = product.mediaItems[1].src  
    bottom.tooltip = product.description
  }
}

Hello. This issue should be fixed for your site. Please let me know if it is okay now. Regards, Alex

Hello Rinshul,

I’m afraid we are unable to check the issue without checking it on the live site.

If you don’t wish to share your site here, please reach out to us via Wix Customer Care with links to the pages with the issue, and we’ll try our best to assist. Your ticket in the help center is private and only you and the Wix customer care agents can view the content.

Regards!

" Since wix doesn’t allow alert() and console.log() doesn’t work for published sites," … The output from console.log is available on live sites by going to the site monitoring utility in your dashboard and switching it on…

Also, please note that I had similar issues because I hadn’t uninstalled the old hubspot app!!!

My site does not render properly on chrome on chromebook. The HTML text element doesn’t render properly on the text under the purple box https://www.recognex.co.uk/faq?field=title&title=OPEN%20APIS%20AND%20DIGITAL%20TRANSFORMATION%20%20

Also don’t know if related but onLogin doesn’t fire for me from Page onready event.

@mike51361 Thanks, that will be useful for future debugging. For better or worse, the issues seem to have been sorted, however the site doesn’t load as fast anymore. Maybe they reverted some of the changes to rendering?
I’m still building my site but a week ago my site loaded at a tolerable speed but still slower than I wanted especially whenever using the .filter or .query functions and it seemed like the past day or two it loaded lightning fast but the things I mentioned stopped work. Now the things work but the speed seems somewhere in between but still a lot slower than I want. I hope my speed is actually due to whatever they are working on and they get it fixed soon because I was loving how fast my products page was loading.
Seriously excited about this performance upgrade and I say that as someone who honestly somewhat hates Wix for all its issues. :sweat_smile:

Yes, everything looks good. Thank You!

Hello. This issue should be fixed for your sites. Please let me know if it is okay now. Regards, Alex

A full 7 seconds for Wix…

@briapril30 You’re not using the old hubspot app are you?

As for both issue, to check their root cause we need to know the URL of your site and the name of the pages where the issues occur.

If you don’t want to share your site on the forum, please contact us via Wix Customer Care here .
Include the link to your comment, site URL and the name of the page with the issue into your support request.

Also, as for logging into console, this works on the live site for the front end code. As mentioned by Mike, for debugging backend code, you can use site monitoring .

Hi Marlowe
Now, (the next day) I enter my site and the lightboxes are retrieving the info without any problem.
So apparently sleeping a night and not doing anything solves the issue :wink:
Thanks for the quick reply anyway!

I’m having issues with my header. I think its being affected by your release.

www.deviousdesigns.ca

Header is fully visible in the editor but the top half is missing on the live site.

Can you please check?

@aleksander-denga How about explianing what the issues were? Both with this and with all the issues that were fixed without explanation above. It feels a bit like "you don’t need to know even though you are a paying customer’

Again, check you don’t have an old version of hubspot app installed. That’s what killed me for 0.5 days…

@aleksander-denga No one of my site still facing issue www.orooms.club

Also the site which has been fixed (www.orofresh.in) is also not loading very fast like it loading yesterday. I was able to see the improvement in loading time of my site but today the site loads is not that fast, it loads like it loads before this new corvid rendering launch

Have you disable the new corvid rendering feature for my sites??

@samuele Now it automatically starts working!!

I think new release has been stopped by wix or they have disabled it because from yesterday my site is loading as usual like its loading before

We seem to be having issues with the session object, session.getItem(key) returns null sometimes. A couple of days ago we found if w just called it twice it would return a value on the 2nd call but today there are still some pages that return null where other pages return the session value

Is anyone else seeing issues here?

edit
Seems to only be pages with a dataset component in them - delete this component and the session.getItem(key) returns a value again