title: Conditionally Prepend text to title tag base on character count using jquery
body: <p>I'm trying to prepend text to my page title tags using jquery based on the number of characters in the title.</p>
  
  <p>I want to prepend text to the title say if the character count is &lt;= 30 </p>
  
  <p>I have had some success with :</p>
  
  <pre><code>         $(document).ready(function(){
           if ( $('title').length &gt; 0 ){
                $('title').prepend('mytext');
               }
               })
  </code></pre>
  
  <p>But this only works on the total character count so if i enter > 200 then it will not append the text if i enter > 0 it will append the text but &lt;=30 does not work so I think I'm looking for the code that will count each page title on load then apply the condition.</p>
  
  <p>I hope this make sense ..!!</p>
  
  <p>Thanks   </p>