I'm playing with the HeadScript placeholder in the incubator. I'm
creating forms elements specific to jQuery. I am wanting the form
element to add which files are need for the specific plugin. The
problem is if I have two different plugin on the same page there is a
repeat of loading the same files in the <head>.
Example:
$view->HeadScript()->appendFile('/jquery/testfile.js');
$view->HeadScript()->appendFile('/jquery/testfile.js');
would produce
<script type="text/javascript" src="/jquery/testfile.js"></script>
<script type="text/javascript" src="/jquery/testfile.js"></script>
Are there plans to stop the duplication of identical files?
Richard