Forums / Setup & design / @import for stylesheets vs <link>

@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

eZ debug

Timing: Jan 18 2025 22:28:24
Script start
Timing: Jan 18 2025 22:28:24
Module start 'content'
Timing: Jan 18 2025 22:28:25
Module end 'content'
Timing: Jan 18 2025 22:28:25
Script end

Main resources:

Total runtime0.9854 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.1563180.8359
Module start 'content' 0.00510.8188 769.9922532.6484
Module end 'content' 0.82390.1615 1,302.6406332.9297
Script end 0.9854  1,635.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3950210.0002
Check MTime0.00150.1485210.0001
Mysql Total
Database connection0.00060.056310.0006
Mysqli_queries0.921793.53041940.0048
Looping result0.00190.18791920.0000
Template Total0.954496.920.4772
Template load0.00220.224020.0011
Template processing0.952296.628220.4761
Template load and register function0.00030.027710.0003
states
state_id_array0.00230.235210.0023
state_identifier_array0.00110.111420.0005
Override
Cache load0.00170.1735120.0001
Sytem overhead
Fetch class attribute can translate value0.00150.147930.0005
Fetch class attribute name0.00110.107740.0003
XML
Image XML parsing0.00090.090230.0003
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00270.2698270.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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