Skip to content

Commit

Permalink
Using image.complete instead of image.height. Opera 'issue' was a beh…
Browse files Browse the repository at this point in the history
…avior, not a cause of the script
  • Loading branch information
tkadlec committed Jan 17, 2012
1 parent fa11ef3 commit 63b1f40
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,7 @@ function checkImages(images) {
var image = new Image();
image.src = prefix + images[i][0] + "?" + suffix;

//check to see if image is loaded using image.height
//was using image.complete, but Opera was misreporting
if (image.height) {
if (image.complete) {
target.innerHTML += "<p class='load'>" + prefix + images[i][0] + "?" + suffix + " has loaded.</p>";
//save the result for Browserscope
_bTestResults[images[i][1]] = 1;
Expand Down

0 comments on commit 63b1f40

Please sign in to comment.