Why some professional web designers use absolute paths instead of relative paths (e.g for CSS, Javascript, images, etc.)? -
I used to think that all the relative paths (like /styles/style.css
) were used . But I'm surprised that some popular web designers (like and) use the full path ( http://example.com/style/style.css
).
So basically I am asking why some professional designers are using the full path instead of the relative path?
ExpressionEngine CMS of both of them, it may possibly link to the stylesheet by CMS.
But in reality this is a matter of preference. Personally, I go with the root relative /css/main.css
because in this way if I am developing locally + offline then I would like to change the locale of WEB_ROOT fixture No need to worry (less trouble + less)
The only case that I am looking for complete, if the domain uses the CDN (content delivery network) and the domain is different from the original domain.
Comments
Post a Comment