mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-11-11 07:41:04 +00:00
Revert "Fix FOUC with inject CSS files"
This reverts commit eeb661b6cd
.
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.on('did-get-response-details', () => {
|
||||
mainWindow.webContents.on('did-finish-load', () => {
|
||||
mainWindow.webContents.send('params', JSON.stringify(options));
|
||||
mainWindow.webContents.insertCSS(getCssToInject());
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user