Difference between revisions of "Widget:AdventurerPageStatsCalculator"
Jump to navigation
Jump to search
imported>Elaeagnifolia |
imported>Elaeagnifolia |
||
| Line 11: | Line 11: | ||
const PROMO_STR_5 = 16; | const PROMO_STR_5 = 16; | ||
| − | calcStats(); | + | RLQ.push( function() { |
| + | $.when( | ||
| + | $(document).ready(), | ||
| + | mw.loader.using( ['mediawiki.util'] ) | ||
| + | ).then( function() { | ||
| + | calcStats(); | ||
| + | }); | ||
| + | }); | ||
| + | }); | ||
function calcStats() { | function calcStats() { | ||