DLEVIET - DataLife Engine Support Home Page

  • Author: admin;  
  • Views: 4556;  
  • 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

Useful Tools

Popular

Pagerank Update

    Updates Yandex SEO
    12.11.2014
    10.10.2014
    08.08.2014
    Updates Yandex search
    21.11.2014
    19.11.2014
    14.11.2014
    Updates Yandex Catalogue
    26.11.2014
    24.11.2014
    21.11.2014
    Updates Google
    06.12.2013
    06.02.2013
    08.11.2012

Find us on Facebook

Poll

How do you know DataLife Engine Support?

Search Engine
Other DLE Support websites
Forum
Friends
Others

Sponsor

Calendar

«    November 2014    »
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
30
Contact us in social network

Facebook

Twitter