Order JS files.

Locked
User avatar
jiggliemon
Joomla! Intern
Joomla! Intern
Posts: 81
Joined: Wed Nov 22, 2006 6:18 am
Contact:

Order JS files.

Post by jiggliemon » Sun Dec 13, 2009 12:46 am

So there's the two ways to add Javascript to our document:

Code: Select all

$document->addScript('path/to/file.js');
//and the wrapper
JHtml::script('file.js','path/to/');
Well I propose to be able to list the ordering in which the files are listed on the document.

Code: Select all

JHtml::('mootools-more.js;' , 'path/to/', 1);
JHtml::('mootools-core.js;' , 'path/to/', 0);
JHtml::('dbug.js;' , 'path/to/',2);

// thus writing:
// mootools-core.js
// mootools-more.js
// dbug.js

Locked

Return to “Feature Requests - White Papers - Archived”