Not logged in. · Lost password · Register
Forum: General Help and Support Plugins RSS
Reducing overall javascript load size to make dokuwiki faster (leightweightscript plugin)
Avatar
at604 #1
Member for 3 months · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Reducing overall javascript load size to make dokuwiki faster (leightweightscript plugin)
The issue around dokuwiki, javascript size, and load time has been discussed before (https://forum.dokuwiki.org/thread/14088) and led to some interesting discussion... I have a dokuwiki that is read-only, and I am the only editor. I have about 5000 views/month and found my dokuwiki's load time is slowing down due to having quite a few plugins and the increased traffic.

When I test my install on https://developers.google.com/speed/pagespeed/insights/ , it seems the majority of the speed issues are due to the loading of exe/js.php. The js.php file ends up being a render-blocking resource that can add several seconds to the page load time.

I found the leightweightscript plugin (https://www.dokuwiki.org/plugin:leightweightscript) seems to address this issue by loading only the necessary js files for read-only users, and only loading additional admin/editor level js when logged in. But when I install this plugin, it doesn't seem to work, and the full javascript remains loaded for all users.

I am running Greebo, using bootstrap3, cache has been purged, file names and plugin folders are correct...

This plugin also has very little documentation...  :-/ I figured it might be a plugin issue, and I took a look through the code and can't figure out what might be going on... Does anyone know what might be wrong with this plugin?

Or better yet, anyone have any other suggestions on reducing javascript load for dokuwiki?

Thanks!
This post was edited on 2019-07-27, 20:17 by at604.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-10-16, 19:55:14 (UTC +02:00)