title: Execute jQuery only on homepage
body: <p>I am trying to trigger a button click on pageload with the piece of jQuery below</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;script&gt;
      jQuery(function(){
        jQuery('#clickson').click();
      });
  &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>It works perfectly but I have this button id on every page, how can I use it such that it only triggers on homepage and subdomain homepages.</p>
  
  <p>For example it should only fire on example.com, subdomain1.example.com, subdomain2.example.com and <strong>NOT</strong> on any other pages like example.com/path, subdomain1.example.com/path, subdomain2.example.com/path</p>