absolute links

  • Posted in : Photographer
  • motti_b
    Participant

    Hi,

    I decided to change all my links to absolute links, including JS, CSS, img, etc.

    It all seems to work except fontello.css. When giving it an absolute link it give my what looks like Chinese characters.

    By the way, would you recommend absolute links rather than relative links?

    Thank you,
    Motti

    ahmetsali
    Keymaster

    Hi,

    – you can check out this link;

    http://stackoverflow.com/questions/2005079/absolute-vs-relative-urls

    – can you provide your page url to check what’s wrong with fontello icons.

    motti_b
    Participant

    Hi,

    I fixed it by keeping a relative link to the fontello.css file.

    Here is a link to my (pre-launch) site:

    Photosbymotti

    ahmetsali
    Keymaster

    cool, happy to see that you have sorted it out.

    motti_b
    Participant

    Hi Ahmetsali,

    Allow me to a bug you with another question.

    In order to speed up page load I decided to consolidate all the CSS and JS files to one or two files.

    As for CSS, I think it is quite simple, I will just copy all the CSS files to one file. I will keep the order they are read by the browser and I will also make sure to document each part of the new CSS file so I know which original CSS file it came from.

    Would it be possible to do the same with the JS files? Can I just copy all the JS files content into one (or two) files? Again, I will keep the order as they are read by the browser now.

    I assume that as many of those JS files were written by others, you cannot consolidate them yourselves but I can do it (keeping all credits intact of course).

    Than you,
    Motti

    ahmetsali
    Keymaster

    Hi again,

    yes you can combine all js files into one file with the right order added to html.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register