@@ -76,8 +76,9 @@ type Widget x = PostBuildT Spider (ImmediateDomBuilderT Spider (WithWebView x (P
7676attachWidget :: DOM.IsElement e => e -> WebViewSingleton x -> Widget x a -> IO a
7777attachWidget rootElement wv w = fst <$> attachWidget' rootElement wv w
7878
79−mainWidgetWithHead' :: (forall x. (a -> Widget x b, b -> Widget x a)) -> IO ()
80−mainWidgetWithHead' widgets = runWebGUI $ \webView -> withWebViewSingleton webView $ \wv -> fmap fst $ attachWidget'' $ \events -> do
79+-- | Warning: `mainWidgetWithHead'` is provided only as performance tweak. It is expected to disappear in future releases.
80+mainWidgetWithHead' :: (a -> Widget () b, b -> Widget () a) -> IO ()
81+mainWidgetWithHead' widgets = runWebGUI $ \webView -> withWebViewSingletonMono webView $ \wv -> fmap fst $ attachWidget'' $ \events -> do
8182 let (headWidget, bodyWidget) = widgets
8283 Just doc <- liftIO $ fmap DOM.castToHTMLDocument <$> webViewGetDomDocument webView
8384 Just headElement <- getHead doc