@import for stylesheets vs <link>

Author Message

Gabriel Ambuehl

Saturday 12 March 2005 2:05:14 am

Is there a reason why stylesheets get imported via @import rather than <link rel="... ? It seems like all the browsers and wget aren't able to save @imported CSS when saving a page with the result of a completely unstyled page after saving. It seems to work in case of <link rel> stylesheets in my Firefox tests (minus the fact that Firefox is too dumb to figure out it should probably also save the img references in the stylesheets...)...

Visit http://triligon.org

Xavier Dutoit

Sunday 13 March 2005 4:48:41 am

I use @import instead of link as the most buggy browsers (Netscape 4 for instance) don't understand the import statement and therefore won't use the css (and screw the layout).

This being said, as NE4 market share is probably very close to 0, I doubt this trick is very useful anymore. Legacy habit I suppose.

P.S. Seen your modifications on ezenhancedobjectrelations: congrat !

http://www.sydesy.com

Gabriel Ambuehl

Sunday 13 March 2005 4:52:08 am

Ah so that's why it looks entirely unstyled in NS4. Personally, I stopped giving a shit for NS4 users (same for IE4, both are well below 1% market share). Half the web doesn't look anywhere right to them anyway, so why should I spend double the time for the few lost souls?

Thanks ;-)

Visit http://triligon.org

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 06:14:31
Script start
Timing: Jan 31 2025 06:14:31
Module start 'layout'
Timing: Jan 31 2025 06:14:31
Module start 'content'
Timing: Jan 31 2025 06:14:32
Module end 'content'
Timing: Jan 31 2025 06:14:32
Script end

Main resources:

Total runtime0.9366 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.1328151.2109
Module start 'layout' 0.00540.0033 739.343836.6641
Module start 'content' 0.00870.9270 776.0078923.3281
Module end 'content' 0.93570.0008 1,699.335912.0000
Script end 0.9365  1,711.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3775160.0002
Check MTime0.00140.1469160.0001
Mysql Total
Database connection0.00080.087710.0008
Mysqli_queries0.880393.9989570.0154
Looping result0.00050.0511550.0000
Template Total0.888294.820.4441
Template load0.00200.214220.0010
Template processing0.886294.626420.4431
Template load and register function0.00120.129610.0012
states
state_id_array0.00140.146710.0014
state_identifier_array0.00110.114620.0005
Override
Cache load0.00160.1762120.0001
Sytem overhead
Fetch class attribute can translate value0.00060.061620.0003
Fetch class attribute name0.00210.220640.0005
XML
Image XML parsing0.00310.332120.0016
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.01171.2525160.0007
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs