We want to add content before every 3rd headline within the content area. We do so with jQuery in Common.js. Now we want to add a JavaScript code for splittesting. This code uses document.write
.
From I learned that one can not use document.write
in Common.js. And says that I can't use jQuery (ready function) within the articles itself.
So how can I use the jQuery ready function in combination with document.write
in MediaWiki?