title: How load a local html file with Chromium Embedded (CEF)?
body: <p>I want load a html file into <strong>Chromium</strong> (<a href="https://github.com/salvadordf/CEF4Delphi" rel="nofollow noreferrer">CEF4Delphi</a>) but nothing is showed, only a white page. </p>
  
  <p>Is possible load a local html file using the following approach?</p>
  
  <p><a href="https://pastebin.com/urzFfNzv" rel="nofollow noreferrer"><strong>Here</strong></a> is html file.</p>
  
  <p>Also have other trouble that is everytime that Chromium is executed, also is executed other instance of my application. How solve this?</p>
  
  <p>Code used:</p>
  
  <pre><code>var
    Form1: TForm1;
    FStarted: Boolean;
  
  implementation
  
  {$R *.dfm}
  
  function CEFApplication: TCefApplication;
  var
    sPath: String;
  begin
    sPath := ExtractFilePath(ParamStr(0));
    if not assigned(GlobalCEFApp) then
    begin
      GlobalCEFApp := TCefApplication.Create;
      GlobalCEFApp.FlashEnabled := False;
      GlobalCEFApp.FastUnload := True;
  
      GlobalCEFApp.FrameworkDirPath := sPath + 'cef';
      GlobalCEFApp.ResourcesDirPath := sPath + 'cef';
      GlobalCEFApp.LocalesDirPath := sPath + 'cef\locales';
      GlobalCEFApp.Cache := sPath + 'cef\cache';
      GlobalCEFApp.Cookies := sPath + 'cef\cookies';
      GlobalCEFApp.UserDataPath := sPath + 'cef\User Data';
      GlobalCEFApp.EnableGPU := False;
    end;
    if not FStarted then
      FStarted := GlobalCEFApp.StartMainProcess;
  
    result := GlobalCEFApp;
  end;
  
  initialization
  
  CEFApplication;
  
  end.
  </code></pre>
  
  <p><strong>Form2:</strong></p>
  
  <pre><code>procedure TForm2.FormShow(Sender: TObject);
  begin
    while not(Chromium1.CreateBrowser(CEFWindowParent1, '')) and
      (Chromium1.Initialized) do
    begin
      Sleep(100);
      Application.processMessages;
    end;
    Chromium1.LoadURL(ExtractFilePath(ExtractFilePath(Application.ExeName)) + 'gmaps.html');
  end;
  </code></pre>
  
  <hr>
  
  <p><strong>EDITION:</strong></p>
  
  <p>Relative to my doubt about multiple instance of my application being executed, this is normal and right based on <a href="https://bitbucket.org/chromiumembedded/cef/wiki/GeneralUsage#markdown-header-processes" rel="nofollow noreferrer"><strong>this</strong></a>
  article.</p>