Last active
October 22, 2015 14:46
-
-
Save LeoOnTheEarth/e4d5750060ac69990d7a to your computer and use it in GitHub Desktop.
Bigpipe Demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php set_time_limit(0); ?> | |
<!DOCTYPE html> | |
<html lang="zh-tw"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>BigPipe Demo</title> | |
</head> | |
<body id="main"> | |
<div> | |
Hello world | |
</div> | |
</body> | |
<?php ob_flush(); flush(); sleep(3); ?> | |
<script> | |
document.getElementById('main').innerHTML += '<div>Hello world 2</div>'; | |
</script> | |
<?php ob_flush(); flush(); sleep(3); ?> | |
<script> | |
document.getElementById('main').innerHTML += '<div>Hello world 3</div>'; | |
</script> | |
<?php ob_flush(); flush(); sleep(3); ?> | |
<script> | |
document.getElementById('main').innerHTML += '<div>Hello world 4</div>'; | |
</script> | |
<?php ob_flush(); flush(); sleep(3); ?> | |
<script> | |
document.getElementById('main').innerHTML += '<div>Hello world 5</div>'; | |
</script> | |
<?php ob_flush(); flush(); ?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment