varajaxPreviewButton='Ω';//"preview" button textvarajaxDiffButton='Δ';//"changes" button text
Scrolling:
varajaxPreviewScrollTop=true;//scroll to the top of preview/changes area after each update
Full update:
varajaxPreviewFull=true;//always update interwikis, categories and templates as well
You can make the script call any custom userscripts by defining the global ajaxPreviewExec() function. For example, if you use NavPopups and want popups to appear in the Ajax-updated preview, use the following code:
// code to execute after each preview updatewindow.ajaxPreviewExec=function(previewArea){if(window.setupTooltips){setupTooltips(previewArea);previewArea.ranSetupTooltipsAlready=false;}}
And if you want tables to be sortable and collapsible elements to work as usual in the Ajax-updated preview, use the following code:
// code to execute after each preview updatewindow.ajaxPreviewExec=function(previewArea){mw.loader.using(['jquery.tablesorter','jquery.makeCollapsible'],function(){$('table.sortable').tablesorter();$('#wikiPreview .collapsible').makeCollapsible();});}
Similar scripts
User:Cacycle/wikEd has similar functionality with "preview" and "changes" buttons.
User:Anomie/ajaxpreview.js adds only "preview" button but will display all references when editing a section (even defined in other sections).
Option "Show preview without reloading the page" in preferences does AJAX preview/changes (using standard buttons at the bottom) but it requests the whole HTML page from the server (no traffic savings there).