mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-01-24 15:48:27 +00:00
Revert "Fix FOUC with inject CSS files"
This reverts commit eeb661b6cd82a3f21f5adbf0d1389cf2804fd16b. This was causing CSS to pile up over and over each time javascript did an HTTP request, which resulted in massive slowdown over time.
This commit is contained in:
parent
ece19efba2
commit
52f7ea511d
@ -125,7 +125,7 @@ function createMainWindow(options, onAppQuit, setDockBadge) {
|
|||||||
mainWindow.webContents.setUserAgent(options.userAgent);
|
mainWindow.webContents.setUserAgent(options.userAgent);
|
||||||
}
|
}
|
||||||
|
|
||||||
mainWindow.webContents.on('did-get-response-details', () => {
|
mainWindow.webContents.on('did-finish-load', () => {
|
||||||
mainWindow.webContents.send('params', JSON.stringify(options));
|
mainWindow.webContents.send('params', JSON.stringify(options));
|
||||||
mainWindow.webContents.insertCSS(getCssToInject());
|
mainWindow.webContents.insertCSS(getCssToInject());
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user