[dokuwiki] Re: version 2005-09-22, loading page slow

  • From: Harry Fuecks <hfuecks@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 6 Oct 2005 10:48:05 +0200

When people are saying "it's slow to load", do you mean the browser
keeps say "page loading"?

If so, a random guess at what the problem could be. Looking at the new indexer;

http://dev.splitbrain.org/view/darcs/dokuwiki/lib/exe/indexer.php

If the indexer actually runs, the image (the call to sendGif() ) is
only sent to the browser after indexing is complete. This will
probably leave the browser waiting for the image to arrive.

Think this can probably be solved by displaying the image first but
will likely also need a Content-Length header to tell the browser when
it's got the complete image e.g.

function sendGIF(){
    $img = 
base64_decode('R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAEALAAAAAABAAEAAAIBTAA7');
    header('Content-Type: image/gif');
    header('Content-Length: '.strlen($img));
    print $img;
    // exit; No exit..
}
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: