Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Regular Coder
    Join Date
    Nov 2007
    Posts
    144
    Thanks
    64
    Thanked 0 Times in 0 Posts

    Site runs slow in Firefox, Fast in Safari

    I look after a site: www.aquacouture.co.uk

    all the lightbox divs etc fade in and out silky smooth in safari... in firefox it runs like a dog... I don't know where to start to try to bugfix this.

    Any help would be greatly appreciated.

    Thanks!

    Beren

  • #2
    Regular Coder
    Join Date
    Nov 2007
    Posts
    144
    Thanks
    64
    Thanked 0 Times in 0 Posts
    Strangely, even IE6 works faster than FF3 does.

  • #3
    Regular Coder
    Join Date
    Nov 2007
    Posts
    144
    Thanks
    64
    Thanked 0 Times in 0 Posts
    $40 for the person who fixes it!

  • #4
    Regular Coder
    Join Date
    Oct 2007
    Posts
    277
    Thanks
    2
    Thanked 4 Times in 4 Posts
    you have some 404 errors in the images:
    http://www.aquacouture.co.uk/imagesx/1.gif
    http://www.aquacouture.co.uk/imagesx/loading_ani2.gif

    then try to compress your scripts using php so the users see's it compressed but on the server it's viewable.

    use this:
    start:
    Code:
    <?php
      header('Content-type: text/css');
      ob_start("compress");
      function compress($buffer) {
        // remove comments
        $buffer = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer);
        // remove tabs, spaces, newlines, etc.
        $buffer = str_replace(array("\r\n", "\r", "\n", "\t", '  ', '    ', '    '), '', $buffer);
        return $buffer;
      }
    ?>
    end:
    Code:
    <?php ob_end_flush();?>
    change header('Content-type: text/css'); to header('Content-type: text/javascript'); for javascript.

    and if you can use htaccess use this so you don't need to change the css to php file:
    Code:
    <Files screen.css>
      SetHandler  application/x-httpd-php 
    </Files>
    where screen.css is your css file.

    hope I helped.

  • Users who have thanked shedokan for this post:

    samuurai (10-03-2008)

  • #5
    Regular Coder
    Join Date
    Nov 2007
    Posts
    144
    Thanks
    64
    Thanked 0 Times in 0 Posts
    Fantastic.. Thanks a lot

    I have fixed the broken links in the next version..

    all things considered, once it's loaded, those things won't really affect the speed at which div's open and close will they?

    Aren't those things are more likely to affect load speed ? I have a fairly limited knowledge of JS, so I may be completely wrong
    Last edited by samuurai; 10-03-2008 at 07:27 PM.

  • #6
    Banned
    Join Date
    May 2006
    Location
    England
    Posts
    664
    Thanks
    0
    Thanked 84 Times in 84 Posts
    Quote Originally Posted by samuurai View Post
    $40 for the person who fixes it!
    The problem is that you're updating a huge screen area and the rendering engine just can't keep up. On some machines it will be slow on all browsers. Ideally you should abandon updating the entire background in favour of stepping the opacity of positioned images of the models, although this would require them to have transparent backgrounds.

    The best fix I could come up with was to increase the opacity increment and the stepping interval. Is this a satisfactory improvement before I remove it? (Ignore the errors they're just caused by a missing file)

  • Users who have thanked Arty Effem for this post:

    samuurai (10-04-2008)

  • #7
    Regular Coder
    Join Date
    Nov 2007
    Posts
    144
    Thanks
    64
    Thanked 0 Times in 0 Posts
    Yes! That's great.. I don't care if the pictures in the background don't fade in as smoothly..

    will the other parts of the site, like the online shop have the jerkier stepping also?

  • #8
    Banned
    Join Date
    May 2006
    Location
    England
    Posts
    664
    Thanks
    0
    Thanked 84 Times in 84 Posts
    Quote Originally Posted by samuurai View Post
    Yes! That's great.. I don't care if the pictures in the background don't fade in as smoothly..

    will the other parts of the site, like the online shop have the jerkier stepping also?
    I don't know but you need to substitute the current version of 'index_page_bk.js' for:

    http://scripterlative.com/test/aqua/js/index_page_bk.js

  • Users who have thanked Arty Effem for this post:

    samuurai (10-04-2008)

  • #9
    Regular Coder
    Join Date
    Nov 2007
    Posts
    144
    Thanks
    64
    Thanked 0 Times in 0 Posts
    Cool - I did that.. I think it's improved it slightly.

    I wonder if it's possible to just stop the background from cycling if there's a page open in front of it, then resume it when there are no pages open.

  • #10
    Regular Coder
    Join Date
    Nov 2007
    Posts
    144
    Thanks
    64
    Thanked 0 Times in 0 Posts
    I PM'd both of you guys !!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •