Dear friends
As you know, starting with version 8.5, DLE include a script - is the ability to compress javascript files, which allows reduce up to 70% their size and thus significantly speed up their load in the browser. In this article I want to tell you that this feature can be used to file your CSS style template. To do this you must change their connection to the template, let's say your styles are connected in a pattern from the point:
to enable compression for these files, these lines must be replaced by:
Actually all, now your styles will be automatically merged and compressed, and the browser will be given to already compressed files, essentially saving your traffic. This will need to remember only one feature, if you want to change the contents of these files, after making changes, you should be sure to go to Admin Panel and press clean cache, and make clear their browser.
DEMO
1) Not compressed: http://dle-news.ru/templates/DLEoffsite/css/style.css (7,531 bytes)
2) Compressed: http://dle-news.ru/engine/classes/min/index.php?f=/templates/DLEoffsite/css/style.css (1,215 bytes)
Compress javascript files:... read more
As you know, starting with version 8.5, DLE include a script - is the ability to compress javascript files, which allows reduce up to 70% their size and thus significantly speed up their load in the browser. In this article I want to tell you that this feature can be used to file your CSS style template. To do this you must change their connection to the template, let's say your styles are connected in a pattern from the point:
<link rel="stylesheet" type="text/css" href="{THEME}/css/style.css" />
<link rel="stylesheet" type="text/css" href="{THEME}/css/engine.css" />
<link rel="stylesheet" type="text/css" href="{THEME}/css/engine.css" />
to enable compression for these files, these lines must be replaced by:
<link rel="stylesheet" type="text/css" href="/engine/classes/min/index.php?f={THEME}/css/style.css,{THEME}/css/engine.css" />
Actually all, now your styles will be automatically merged and compressed, and the browser will be given to already compressed files, essentially saving your traffic. This will need to remember only one feature, if you want to change the contents of these files, after making changes, you should be sure to go to Admin Panel and press clean cache, and make clear their browser.
DEMO
1) Not compressed: http://dle-news.ru/templates/DLEoffsite/css/style.css (7,531 bytes)
2) Compressed: http://dle-news.ru/engine/classes/min/index.php?f=/templates/DLEoffsite/css/style.css (1,215 bytes)
Compress javascript files:... read more

Updates
Dle templates English


