Tracking SVI changes

If you are a developer and for some reason wish to track SVI events below goes a simple code that allows you to do that:

            function waitForSviElement() {
                if (typeof svi_method !== "undefined") {
                        action => {
                            console.log("Change was made", action); //You can make conditions based on the action
                } else {
                    setTimeout(waitForSviElement, 5);

            if (jQuery('.svi_wrapper,.woosvi_strap').length > 0) //IF SVI ELEMENTS PRESENT START SEARCHING FOR SVI EVENTS