Skill Level: 
Advanced

Inline JavaScript, which is used for framework plugins and widgets (e.g. carousel, events, tabs, etc.), should be wrapped in the following code:

<script>
  window.addEventListener('inlineJSReady', function() {
    // Your JavaScript goes here.
  }, false);
<script>
Contributed By: 
IIM