var addClickTouchEvent = function(element, handler) {
  var wrapper = function(e) {
    handler(e);
    e.preventDefault();
  };
  element.on({
    'touchstart': wrapper,
    'click': wrapper
  });
};

function onURLBlocked(base_url, callback) {
  $('<img width="0" height="0">')
      .on("error", callback)
      .attr("src", base_url + "?" + Math.random())
      .css("position", "absolute")
      .css("bottom", 0)
      .css("right", 0)
      .css("z-index", -1)
      .css("width", 0)
      .css("height", 0)
      .appendTo("body");
}

var addClickTouchEvent = function(element, handler) {
  var wrapper = function(e) {
    handler(e);
    e.preventDefault();
  };
  element.on({
    'touchstart': wrapper,
    'click': wrapper
  });
};

function onURLBlocked(base_url, callback) {
  $('<img>')
      .on("error", callback)
      .attr("src", base_url + "?" + Math.random())
      .css("position", "absolute")
      .css("bottom", 0)
      .css("right", 0)
      .css("z-index", -1)
      .css("width", 0)
      .css("height", 0)
      .appendTo("body");
}

Remove inline attributes from HTTPS test image
Remove inline attributes from HTTPS test image
