user:js/ajaxPreview

Preview button updates content and edit summary previews and then executes global collapsing scripts.

Shift-clicking the button will update the previews of interwikis, categories and templates as well.

You still need regular non-Ajax preview if you insert <syntaxhighlight lang="xxx"> or <categorytree>.

This can be changed with the following parameters added to the same JS file as above.

Save page Show preview> Show changes>

The "old" standard buttons are then moved to the right and marked with ">":

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:

And if you want tables to be sortable and collapsible elements to work as usual in the Ajax-updated preview, use the following code: