[dokuwiki] Re: Performance: scripts at the bottom?

  • From: Colin McKinnon <colin.mckinnon@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sun, 30 Jun 2013 15:36:41 +0100

Hi all,

For info, I implemented the changes to support deferred loading of
Dokuwiki's javascript in a syntax plugin (Jokuwiki) and template
(starterPjax) which are now available via the Dokuwiki site.

While these will enable PJAX based loading out of the box, to enable
deferred loading of the Dokuwiki javascript on the first page the user hits
needs a small change to the Dokuwiki code - see

The template page also has metrics accessing the site via 'localhost'.
here's an earlier version of the code running on
http://www.scottishratclub.co.uk/ if you want to see it in action.  I've
also added an example of a javascript-only plugin (jwHelloWorld) at the
Dokuwiki site.

Any feedback welcome.


> On 24 May 2013 13:58, Anika Henke <anika@xxxxxxxxxxxxxxx> wrote:
>> This has been discussed before, although mainly in the IRC. Here is the
>> appropriate (closed) feature request:
>> https://bugs.dokuwiki.org/**index.php?do=details&task_id=**2544<https://bugs.dokuwiki.org/index.php?do=details&task_id=2544>
>> Please feel free to add to that. It would be great to have some proper
>> data proving or disproving the case for JS at the bottom (specifically for
>> DokuWiki).
>> Cheers,
>> Anika

Other related posts: