Grails Resources Plugin and AJAX loaded javascript

前端 未结 3 801
梦如初夏
梦如初夏 2021-02-05 10:52

I added the resources plug-in in a grails 1.3.7 application and everything works fine except javascript that is loaded asynchronously.

So if I have a template that conta

3条回答
  •  猫巷女王i
    2021-02-05 11:35

    A better option I think is to not use r:script in your template fragment. Just use normal script tag. You are not getting any benefit from Resources inside these fragments if you don't need the layoutResources stuff.

    Sometimes the classic way is the best.

提交回复
热议问题