don't start measuring lag until after syncing and update readme

This commit is contained in:
Caleb James DeLisle
2014-11-03 20:43:43 +01:00
parent 6d68bb0bde
commit 87aa1aaf91
2 changed files with 27 additions and 4 deletions

View File

@@ -486,10 +486,6 @@ window.ErrorBox = ErrorBox;
//createDebugLink(realtime, doc, allMessages, toolbar);
createLagElement(socket,
realtime,
toolbar.find('.rtwysiwyg-toolbar-rightside'));
createUserList(realtime,
userName,
toolbar.find('.rtwysiwyg-toolbar-leftside'));
@@ -534,6 +530,9 @@ window.ErrorBox = ErrorBox;
// if we spot ourselves being added to the document, we'll switch
// 'initializing' off because it means we're fully synced.
initializing = false;
createLagElement(socket,
realtime,
toolbar.find('.rtwysiwyg-toolbar-rightside'));
incomingPatch();
});