Board Thread:General Coding Help/@comment-26427968-20150618224244

I'm having trouble getting this to work how I want it to. JSFiddle: http://jsfiddle.net/JohnSmith593/ku313fpn/

on my wikia...


 * css: http://wurm-almanac.wikia.com/wiki/MediaWiki%3ACommon.css
 * js: http://wurm-almanac.wikia.com/wiki/MediaWiki%3ACommon.js
 * js: http://wurm-almanac.wikia.com/wiki/MediaWiki%3AFence_slope.js
 * calculator page: http://wurm-almanac.wikia.com/wiki/Fence_slope_calculator

Q: My MediaWiki:Common.js and .css don't seem like the best way to get this to work. I believe it should only run the mw.loader of various CSS and JS if they are needed because the Calculator isn't on every page. Is this a good idea and any tips would be appreciated.

Q: When I first made this I had a heck of a time getting it to work and I'm pretty sure it was mostly because dependency CSS and JS files weren't being loaded in proper order. Any tips on assuring dependencies get loaded first would be great.

Q: Are there any good written works that explain how to use JS, CSS, HTML with Wikimedia? There are plenty out there that describe JS, CSS, HTML but I'm having trouble finding things that explain interaction with Wikimedia. 