I'm making a theme where I'm including a javascript-lib which wants to be loaded/instrumented with a potion of generated code at document.ready()-time. Generated because some theme-options are influencing the behaviour.
I properly load the .js of the lib with wp_enqueue_script(). Now I need a proper way to put the the javascript-code below the script.
I found a way which suggests to change header.php to include the code after the call to wp_head().
I think my question is, is there a way to add js-code so that the call to wp_head() includes at in the right place? Is there a wp_enqueue_script_code()?