We are having the same issue on our dev site that is also about to go live. The above code did not work for us. As a temporary fix, we have manually deactivated the two files in the vendor/jquery-resize directory. This solved the issue, but is super hacky. It will work until a bug fix is released or we can get the function.php route to work.