code: function load (source, options, callback = noop) {
        if (typeof options === 'function') callback = options, options = {}
        options = assign({type: null, encoding: 'base64'}, options)
  
        // Callback handler
        var contents = window.webContents
        eventcb(contents, 'did-finish-load', 'did-fail-load', callback)
  
        // Load source as data:
        if (options.type) {
          const data = Buffer.from(source).toString(options.encoding)
          return window.loadURL(`data:${options.type};${options.encoding},${data}`, options)
        }
  
        // Load source as URL:
        const protocol = url.parse(source).protocol
        if (!protocol) source = 'file://' + source
        return window.loadURL(source, options)
      }
docs: Method for loading urls or data.