I’m using $(window).load() to re-size the minimum height of a text field based on various other heights that change on page load. My script works fine, however, if another script on the page fails to load (for some unknown reason) the $(window).load() doesn’t run.
Is there a way to get the $(window).load() to run even if an error has occurred (maybe using .error()), i.e. bypass the errored script?
my current script for the load() event is below if this helps:
$(window).load(function() {
var imageArea = $('.imageArea').height();
var productDetail = $('.productDetail').height();
var productText = (imageArea - productDetail) - 110; //-110 is the height of another element
$('.productText').css('min-height', productText);
});
You could try :
wishing jQuery is loaded…