Note that there are some explanatory texts on larger screens.

plurals
  1. POShow JQuery slider while page is still loading
    text
    copied!<p>Problem: Jquery Slider doesn't display on webpage until the last .js file is downloaded</p> <p>Question: How to display Jquery Slider while the external .js are still loading (have finished Jquery download, and downloading other third party plugins and modules).</p> <p>Scenario:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;link rel="stylesheet" href="http://code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css" /&gt; &lt;script src="http://code.jquery.com/jquery-1.9.1.js"&gt;&lt;/script&gt; &lt;script src="http://code.jquery.com/ui/1.10.1/jquery-ui.js"&gt;&lt;/script&gt; &lt;link rel="stylesheet" href="http://jqueryui.com/resources/demos/style.css" /&gt; &lt;script type="text/javascript"&gt; $(document).ready( function() { // Product Price Slider $(function() { $("#fproductprice #slider-range").slider({ range: true, logarithmic: true, min: 1, max: 100 , animated: true, values: [1, 100], slide: function( event, ui ) { $("#fppricefrom").val(ui.values[0]); $("#fppriceto").val(ui.values[1]); } }); $("#fppricefrom").val( $("#fproductprice #slider-range").slider("values",0)); $("#fppriceto").val( $("#fproductprice #slider-range").slider("values",1)); }); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;!-- Product Price --&gt; &lt;div id="fproductprice"&gt; Price: &lt;div id="slider-range"&gt;&lt;/div&gt; &lt;br /&gt; &lt;input type="text" id="fppricefrom" size="8"/&gt; &lt;input type="text" id="fppriceto" size="8"/&gt; &lt;/div&gt; &lt;script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"&gt;&lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload