I wrote the code and saw a bug in firefox and little bug in chrome
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Mozila Firefox</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
$(function(){
$(window).scroll(function(){
if ($(window).scrollTop() == $(document).height() - $(window).height()){
alert('1');
}
});
});
</script>
</head>
<body>
CONTENT FOR SCROLL
</body>
</html>
When I scroll this page in firefox i getting bug which covers the black transparent background browser.
In chrome just more and more alerts.
Close your tabs in firefox! Live: http://forum.xeksec.com/habr/mozilla_crash_or_wtf/