DLEVIET - DataLife Engine Support Home Page

  • Author: admin;  
  • Views: 2217;  
  • Comments: 4;  
  • Date: 11 March 2010;  
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:

<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 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

Popular

Pagerank Update

    Updates Yandex SEO
    04.02.2012
    23.12.2011
    09.12.2011
    Updates Yandex search
    02.02.2012
    28.01.2012
    25.01.2012
    Updates Yandex Catalogue
    03.02.2012
    02.02.2012
    01.02.2012
    Updates Google
    08.11.2011
    05.08.2011
    27.06.2011

Find us on Facebook

Poll

How do you know DataLife Engine Support?

Search Engine
Other DLE Support websites
Forum
Friends
Others

Sponsor

Calendar

«    February 2012    »
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29