title: Use window.location in If condition to toggle between CSS files
body: <p>I'm using the below code to load a css file based on the <strong>window.location</strong> element. </p>
  
  <pre><code>&lt;core:if test="${window.location.hostname == 'localhost'}"&gt;
  &lt;link href="././css/imageload.css" media="screen" rel="stylesheet" type="text/css" /&gt;
  &lt;/core:if&gt;
  </code></pre>
  
  <p>The test always returns false eventhough the window.location.hostname is 'localhost'. This I have tested using an alert box. </p>
  
  <p>Am I doing something wrong here? Or is there any other way to compare the window.location.hostname element?</p>
  
  <p>(I'm using Spring framework. Front end is Javascript+CSS )</p>