Step 1 : be sure of the script loaded ...
1 : clean firefox cache menu>preferences>network empty now (several times...)
2 : clean cache
cd yourwikidir/data/cache
sudo rm -r *
in .../lib/tpl/m1/script.js save original file and replace by
alert('scriptjs:m1');
console.log('scriptjs:m1');
in .../lib/tpl/dokuwiki/script.js add
alert('scriptjs:dokuwiki');
...
in ... /conf/ add file userscript.js with code
alert('usersscriptjs:m1');
console.log('userscriptjs:m1');
and play with them to see that the script.js of the skin selected with loadskin is not loaded ... only the script.js of the default skin is loaded.
if you want to have dokuwiki skin by default, you can force m1 script.js with this line in file .../lib/tpl/m1/main.php
<script type="text/javascript" charset="utf-8" src="http://serverhost/mainwikidir/lib/tpl/m1/script.js"></script>
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
play with cache (step 1 and 2) and skinload and default template
step 2 :
when you see your message, replace script.js by the original one.
Clear cache (step 1 and 2)
... and all is working as expected ...
i hate caching in dev stage in general ...and loadskin + caching is a nightmare ...