everything on 1 stylesheet

leehughesleehughes Member
in General edited August 2010
Hi,

I have concerns with the amount of code I am putting in my head section.

I have the needed code and plan to add

http://wiki.foxycart.com/docs/json/tutorial?s[]=json

However, I do like to keep my head section pretty clean for load speeds.

Is it possible to keep all this code on 1 file and call it in a single line in the header?

I'm not a coder or anything so just thought I would see if you could do it.

thanks
Comments
  • lukeluke FoxyCart Team
    Hey lee. It shouldn't matter a whole lot but if you want to put that in a file on your server, that's just fine. It will just be a javascript include like any other.
  • fc_adamfc_adam FoxyCart Team
    @leehughes, worth noting is that browsers can load files from multiple different servers at the same time. So if you had 4 files on your server, it would load 2 at a time, but if you had 2 on one domain and 2 on another, it would load all 4 at the same time. So having the FoxyCart js included in your head while it does add another line, shouldn't affect your load times too much over hosting it yourself in a single file. This is detailed a little bit on the yahoo developer site under 'split components across domains'
  • cheers guys.

    I have asked my developer to give it a go..
Sign In or Register to comment.