         messagingController.buttonSelectionDelegate = self
         let setupUserScript = CodemirrorSetupUserScript(language: language, theme: theme) { [weak self] in
             webViewCoverView.removeFromSuperview()
-            self?.loadWikitext()
+            self?.isCodemirrorReady = true
         }
         
         contentController.addUserScript(setupUserScript)


    override func viewDidLoad() {
        super.viewDidLoad()
        configureNavigationButtonItems()
        configureWebView()


            } else {
                WMFAlertManager.sharedInstance.dismissAlert()
            }
            DispatchQueue.main.async {
                self.wikitext = revision
            }
        case .FETCH_FINAL_STATUS_CANCELLED:
            fallthrough
