Ticket #776 (closed enhancement: fixed)

Opened 9 months ago

Last modified 8 months ago

new supertype helper method: addAsset(), which can load a css or js file to the head section only if it has not been loaded already in a request

Reported by: lmajano Owned by: lmajano
Priority: normal Milestone: 3.0.0
Component: Plugin Renderer Version:
Severity: normal Keywords:
Cc:

Description (last modified by lmajano) (diff)

new supertype helper method: addAsset(), which can load a css or js file to the head section only if it has not been loaded already in a request.

So if you make multiple calls, it only loads the asset ONCE!

<cfset addAsset('includes/js/jquery.js')>

Change History

Changed 8 months ago by lmajano

  • status changed from new to closed
  • resolution set to fixed
  • description modified (diff)
  • summary changed from new renderer helper method: addAsset(), which can load a css or js file to the head section to new supertype helper method: addAsset(), which can load a css or js file to the head section only if it has not been loaded already in a request
Note: See TracTickets for help on using tickets.