Welcome Guest, Not a member yet? Register   Sign In
img/CSS relative path problem
#4

[eluser]Craig A Rodway[/eluser]
[quote author="SlimDeluxe" date="1261533784"]Theres just this thought in my head, that the script is now accessing the elements by kind of a longer way than it really should.
With your solution all URLs then become absolute web addresses. If you put aside the fact, that you have to enable access to these elements in .htaccess, I wonder, if this has any effect on server performance.
=)[/quote]

I have no idea what you mean here.

The code I posted simply does this:

It sets the BASE tag to the path where your assets are stored. Any code that loads an asset (javascript, stylesheet, image) relatively (as in my example) is loaded relative to the URL in the BASE tag. It has no relevance to htaccess, thus having no effect on server performance.


Messages In This Thread
img/CSS relative path problem - by El Forum - 12-22-2009, 01:48 PM
img/CSS relative path problem - by El Forum - 12-22-2009, 01:50 PM
img/CSS relative path problem - by El Forum - 12-22-2009, 02:03 PM
img/CSS relative path problem - by El Forum - 12-22-2009, 02:15 PM
img/CSS relative path problem - by El Forum - 12-22-2009, 02:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB