Skip to content

Instantly share code, notes, and snippets.

@nelix
Created April 2, 2013 04:17
Show Gist options
  • Select an option

  • Save nelix/5289906 to your computer and use it in GitHub Desktop.

Select an option

Save nelix/5289906 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'>
document.addEventListener("DOMContentLoaded", function(){
// an iframe and enough content to scroll is required
var iframe = document.getElementById('frame');
// if we touch this and there is a hash in the iframes parent location it will infiniscroll
// only if its parent is top
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();
}, false);
</script>
</head>
<body>
<iframe id='frame' style="bottom:0;position:fixed;"></iframe>
<pre>
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
0
</pre>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment