title: Jira Custom field not executing when loading i jira ssue v8.5.9
body: <p>We a custom field which is a multi select text field and wiki rendered,</p>
  <p>We have added an AJS code as html as below,</p>
  <pre><code>&lt;script&gt; 
  AJS.$(document).ready(function() {
  
  AJS.$(&quot;#rowForcustomfield_10503&quot;).css({&quot;width&quot;:&quot;130%&quot;});
  
  AJS.$('.confluenceTable').find('tr').each(function() {
  var tds = AJS.$(this).find('th');
  var len = tds.length;
  for (var i = 0; i &lt; len; i++) { AJS.$(tds[i]).css('text-align', 'center'); AJS.$(tds[i]).css('color', 'white'); AJS.$(tds[i]).css('background-color', '#5F5F5F '); } 
  
  });
  
  window.alert(&quot;Hi&quot;);
  
  var ths = AJS.$(&quot;table tbody tr&quot;).find(&quot;th&quot;);
  var len = ths.length;
  for (var i = 0; i &lt; len; i++) {
  AJS.$(ths[i]).css({&quot;width&quot;:&quot;1px&quot;,&quot;white-space&quot;:&quot;nowrap&quot;});
  }
  
  AJS.$('.confluenceTable').find('tr').each(function() {
  AJS.$(this).css('background-color', '#F2F2F2 ');
  AJS.$(this).css('background-color', '#F1F1F1 ');
  
  var tds = AJS.$(this).find('td');
  var len = tds.length;
  for (var i = 0; i &lt; len; i++) {
  AJS.$(tds[i]).css('text-align', 'center');
  AJS.$(tds[i]).css('color', 'black');
  AJS.$(tds[i]).css({&quot;width&quot;:&quot;1px&quot;,&quot;white-space&quot;:&quot;nowrap&quot;});
  } 
  });
  </code></pre>
  <p>It was coming with wrapping and misaligned. Hence we ran it in console and it worked, the custom field came no wrapped and worked fine. We have added a window.alert(&quot;Hi&quot;) to test and it displayed when run in console and when we edited the custom field.</p>
  <p>BUT not while loading page. Please help</p>