title: Can't load CSS/JS on javafx Webview
body: <p>I am having trouble getting css/js to show up on a Webview. </p>
  
  <p>Here is what I am doing:</p>
  
  <p>initializing the webview and engine</p>
  
  <pre><code>WebView browser = new WebView();
  WebEngine webEngine = browser.getEngine();
  webEngine.setJavaScriptEnabled(true);
  </code></pre>
  
  <p>This is where I load html content:</p>
  
  <pre><code>htmlViewImgBtn.addEventHandler(MouseEvent.MOUSE_CLICKED,
      new EventHandler&lt;MouseEven
          @Override
          public void handle(MouseEvent event){
  
              if (counter == 0){
              contentContainer.getChildren().addAll(browser);
              webEngine.loadContent(export.getHTML(note));
              //browser.getEngine().load("http://stackoverflow.com/questions/34554583/cant-load-css-js-on-javafx-webview");
              contentContainer.getChildren().remove(noteContent);
              counter = 1;
             }
  
             else {
             contentContainer.getChildren().remove(browser);
             contentContainer.getChildren().addAll(noteContent);
             counter = 0;
             }
         }
  });
  </code></pre>
  
  <p>Note: The commented code works when loading a website onto the webview, no issues. But Still does not work for the content I am loading.</p>
  
  <p>The content (HTML) that is loaded looks looks like this:</p>
  
  <pre><code>&lt;link href="prism.css" rel="stylesheet" type="text/css" /&gt;
  &lt;script src="prism.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;pre&gt;&lt;code class="language-java"&gt;System.out.println("Hello");
  &lt;/code&gt;&lt;/pre&gt;
  </code></pre>
  
  <p>Also, the css and js files are in the same directory as the java file</p>
  
  <p>I can confirm that the html works by loading it on a web browser, What am I missing?</p>