Hi!
I got some problems with assets optimization:
tried to optimize assets by passing different values of $config['assets_output'] in MY_Fuel.php but have no results (actually no reaction at all), then i changed value of $config['assets_output'] in asset.php file, it did worked but my site broke down:
not all js scripts worked properly, not all backgrounds loaded, actually page cant fully load, compiled css and js files apear in assets/cache, but I gues it just didn't compile them fully or properly, in cache folder appears 4 php files one of them with header("Content-type: text/javascript; charset: UTF-8");
is 1kb...
About my assets:
css and js files are located in different subfolders, some of them are allready compiled (bootstrap.min.css, bootstrap.min.js)
I tried to remove jquery.js - same result...
Questions:
Compiler takes all files from
css('main').css($css);
js('main').js($js)
this code or from assets directory?
What should I do to combine files, strip whitespace, and gzip them properly?
Comments
1. What are the values of $css and $js.
2. Are the js and css files located at assets/js/{file}.js and assets/css/{file}.css respectively?
3. Are the image paths in your CSS set to be relative (e.g. ../images/{imgname.ext})
$vars['js'] = array( 'components/bootstrap', 'components/response', 'components/slider', 'components/filtr', 'components/popup', ); $vars['css'] = array( 'main', 'elem/header', 'elem/menu', ...... 'components/popup' );
2. Files are located in assets/js/script.js , assets/js/{folder}/script.js, and css also have some subfolders.
3. Images paths in css files are relative.
Error(22): Too many compiles performed recently. Try again later.