How to stop auto refresh after updating the diagram (importXML)

After updating the xml using importXML diagram get auto reload/refresh , how to stop auto refresh after updating the diagram