EditConflictAlert

EditConflictAlert displays a notification when the page you are editing gets edited, from which you can display the diff of that respective edit. After viewing the diff, you can opt to replace your content with the latest revision, or cancel and continue with your own work. If you choose to update, you can undo this at any time using the built-in undo feature in VisualEditor.
== ==
== ==
All variables must be declared before the importArticles call.
; window.EditConflictAlertInterval
: The time (in MS) that passes in-between API calls checking for new edits. Default: 5000
Example:
window.EditConflictAlertInterval = 15000;
// importArticles...