When I run my code using `npm start`, it takes a few moments before the title of the `main_window` is fully loaded. Here's a GIF demonstrating it:

[![wtf](https://i.stack.imgur.com/De3e4.gif)](https://i.stack.imgur.com/De3e4.gif)

This is my code:

```
const electron = require('electron')
const url = require('url')
const path = require('path')

const {app, BrowserWindow, Menu} = electron

let main_window

app.on('ready', function() {
    main_window = new BrowserWindow({})
    main_window.loadURL(url.format({
        pathname: path.join(__dirname, 'main_window.html'),
        protocol: 'file:',
        slashes: true
    }))

    Menu.setApplicationMenu(null)
})

```

Before the title, which I specified in my `main_window.html`, loads, it shows the name of the project, which I specified in my `package.json`. I don't think the content of these two files is relevant, but here they are anyway:

`main_window.html`:

```
<!DOCTYPE html>
<html lang="en">
    <head>
        <title>7Watchlist Data Grabber</title>
    </head>
    <body>
        <h1>Another Collection of Web Crawlers</h1>
    </body>
</html>

```

`package.json`:

```
{
  "name": "datagrabber",
  "version": "1.0.0",
  "description": "Another Collection of Web Crawlers",
  "main": "main.js",
  "scripts": {
    "start": "electron ."
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/amirashabani/DataGrabber.git"
  },
  "author": "Amir A. Shabani",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/amirashabani/DataGrabber/issues"
  },
  "homepage": "https://github.com/amirashabani/DataGrabber#readme",
  "dependencies": {
    "electron": "^5.0.0"
  }
}

```

Is it something I have to accept? I don't think this is normal behavior. 

Edit1: Setting `sandbox` to `true` or running app with `npm start --no-proxy-resolver` (as suggested by [@Mr. Polywhirl](https://stackoverflow.com/a/55921613/6282576)) doesn't seem to make a difference:

[![sandbox and --no-proxy-resolver](https://i.stack.imgur.com/fXVMZ.gif)](https://i.stack.imgur.com/fXVMZ.gif)