Pull GetOption() variable into jQuery dynamically created html

You would still do this with AJAX, except that instead of firing on some event like a ‘click’, or ‘hover’, or submit, you would fire the Javascript function on jQuery(document).ready instead. That will execute immediately on page load. It doesn’t let you execute the code before the page loads as your question states but you can’t run Javascript before the page loads. Javascript runs client-side, in the browser. The page has to load in order for that to happen.