hlstriker Posted December 17, 2008 Share Posted December 17, 2008 Is it possible to echo text before the page is finished loading? Example: echo "This text should be displayed instantly"; echo "This text should wait until the page is fully loaded to display"; I tried the following but it didn't work: ob_start(); echo "This text should be displayed instantly"; ob_flush(); flush(); echo "This text should wait until the page is fully loaded to display"; So, is this possible and if so how can I do it? Quote Link to comment https://forums.phpfreaks.com/topic/137421-solved-echo-text-before-page-is-finished-loading/ Share on other sites More sharing options...
.josh Posted December 17, 2008 Share Posted December 17, 2008 not with php. script is parsed server side and sent to client after script is done executing. Quote Link to comment https://forums.phpfreaks.com/topic/137421-solved-echo-text-before-page-is-finished-loading/#findComment-718066 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.