The Combinator plugin is designed to combine several .js and .css files passed by the $out['compopup'] variable (system/header.php) so as to reduce page loading time.
Reduce time losses required to handle and download each .js and .css file by combining all .js or .css files into one file.
The plugin receives value of the $out['compopup'] var, selects all javascript, css and CDATA files and returns $out['compopup'] containing:
<script type="text/javascript" src="javascript/jquery.js,base.js,plugins/an_3DtagCloud/jvclouds3D/swfobject.js,jquery.form.js,jquery.effects.core.js"></script>
<link rel="stylesheet" type="text/css" href="style/plugins/tags/style.css,skins/default/default.css" />
... and CDATA scripts
You can use plugin settings to add alternative path to an existing file or add a new file into the variable manually. The resulting output is saved in the "datas/cache/" folder and is returned compressed to a user. css-files from templates can be attached same way (see Installation for details).
Плагин предназначен для соединения нескольких файлов .js/.css, которые передаются в переменной $out['compopup'] (system/header.php), для ускорения загрузки страницы.
Плагин получает значение переменной $out['compopup'], выбирает оттуда файлы javascript, css и CDATA. После обработки возвращает переменную $out['compopup'], содержащую в себе:
<script type="text/javascript" src="javascript/jquery.js,base.js,plugins/an_3DtagCloud/jvclouds3D/swfobject.js,jquery.form.js,jquery.effects.core.js"></script>
<link rel="stylesheet" type="text/css" href="style/plugins/tags/style.css,skins/default/default.css" />
... и скрипты, указанные через CDATA;
Также в настройках плагина можно указать альтернативный путь к существующему файлу или добавить новый файл в переменную вручную. Результаты обработки и соединения файлов сохраняются в папку "datas/cache/" и при входе отдаются пользователю в сжатом виде без обработки. Таким же образом можно подключать и css из шаблона (см. п.4, 5 раздела Установка).
Bedankt: 10 tijden
I am a speed junkie
So I looked up some info:
http://rakaz.nl/2006/12/make-your-pages-load-faster-by-combining-and-compressing-javascript-and-css-files.html
http://www.hunlock.com/blogs/Supercharged_Javascript
Bedankt: 7 tijden