The g:javascript documentation found here contains this text: If you use this tag to render inline JavaScript code, it is recommended that you use the Resources plugin’s <r:script> tag to produce ...