MediaWiki:BibleGet.js: Difference between revisions
no edit summary
Johnrdorazio (talk | contribs) No edit summary |
Johnrdorazio (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
let bibleQuoteCollection = []; | let bibleQuoteCollection = []; | ||
let domCheckInterval = null; | let domCheckInterval = null; | ||
let ajaxCount = 0; | |||
(function($,mw){ | (function($,mw){ | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
Line 99: | Line 100: | ||
}); //END document ready | }); //END document ready | ||
$(document).ajaxStop(function(){ | $(document).ajaxStop(function(){ | ||
console.log("ajaxStop has fired " + ++ajaxCount + " time(s)"); | |||
//just because ajax requests have finished doesn't mean the dom manipulation is done... | //just because ajax requests have finished doesn't mean the dom manipulation is done... | ||
//let's create a check for all elements before doing any further manipulation | //let's create a check for all elements before doing any further manipulation |