Sunday, January 2, 2011

Compressing CSS template files



Dear friends
In this article I want to tell you how to compress the stylesheets CSS in your dle 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" />
 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 combined and compressed, and the browser will be given to already compressed files, essentially saving your traffic.Thus it is necessary to remember only one feature, if you want to change the contents of these files, then after making changes, you will need to necessarily go to the Admin Panel script and make clear the cache in the admin panel script, and make clear the cache in your browser. 

0 comments:

Post a Comment