Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Why Web Browsers Suck Today

Why Web Browsers Suck Today

Scheduled Pinned Locked Moved The Lounge
csscomgraphicsperformance
11 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AspDotNetDev
    wrote on last edited by
    #1

    I am working on a webpage that is heavy with graphics and has a lot of vertical scrolling animations. During the vertical animation, it would pause for a fraction of a second whenever a new graphic came into view (making the animation appear less smooth). I surmised this was happening because the browser was loading the image into graphics memory (or from some cache into normal memory) and then unloading it after it came out of view. The solution, which seems to be working, is to combine all the images into a single sprite image and only display the portion appropriate for each section of the page (that way, there is only one image and it is always visible, so it always stays in graphics memory). Such a workaround should not be necessary (not to mention it increases overall file size and makes image management more complicated). :|

    Thou mewling ill-breeding pignut!

    C L D A 4 Replies Last reply
    0
    • A AspDotNetDev

      I am working on a webpage that is heavy with graphics and has a lot of vertical scrolling animations. During the vertical animation, it would pause for a fraction of a second whenever a new graphic came into view (making the animation appear less smooth). I surmised this was happening because the browser was loading the image into graphics memory (or from some cache into normal memory) and then unloading it after it came out of view. The solution, which seems to be working, is to combine all the images into a single sprite image and only display the portion appropriate for each section of the page (that way, there is only one image and it is always visible, so it always stays in graphics memory). Such a workaround should not be necessary (not to mention it increases overall file size and makes image management more complicated). :|

      Thou mewling ill-breeding pignut!

      C Offline
      C Offline
      Chris Maunder
      wrote on last edited by
      #2

      Are you sure that's the case and it's not a delay in actually loading the image from the server to the browser? Are you pre-caching the images client-side when the page loads?

      cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

      A 1 Reply Last reply
      0
      • C Chris Maunder

        Are you sure that's the case and it's not a delay in actually loading the image from the server to the browser? Are you pre-caching the images client-side when the page loads?

        cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

        A Offline
        A Offline
        AspDotNetDev
        wrote on last edited by
        #3

        I did scroll through the entire page first to ensure all the images were loaded. Then I repeated the scroll animation.

        Thou mewling ill-breeding pignut!

        C 1 Reply Last reply
        0
        • A AspDotNetDev

          I did scroll through the entire page first to ensure all the images were loaded. Then I repeated the scroll animation.

          Thou mewling ill-breeding pignut!

          C Offline
          C Offline
          Chris Maunder
          wrote on last edited by
          #4

          Have you rebooted your machine?

          cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

          A 1 Reply Last reply
          0
          • C Chris Maunder

            Have you rebooted your machine?

            cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

            A Offline
            A Offline
            AspDotNetDev
            wrote on last edited by
            #5

            Yes, hundreds of times since I bought it.

            Thou mewling ill-breeding pignut!

            M 1 Reply Last reply
            0
            • A AspDotNetDev

              Yes, hundreds of times since I bought it.

              Thou mewling ill-breeding pignut!

              M Offline
              M Offline
              Michael Bergman
              wrote on last edited by
              #6

              That's funny because it works on my machine.

              m.bergman

              For Bruce Schneier, quanta only have one state : afraid.

              To succeed in the world it is not enough to be stupid, you must also be well-mannered. -- Voltaire

              Honesty is the best policy, but insanity is a better defense. -- Steve Landesberg

              I am not a chatbot.

              1 Reply Last reply
              0
              • A AspDotNetDev

                I am working on a webpage that is heavy with graphics and has a lot of vertical scrolling animations. During the vertical animation, it would pause for a fraction of a second whenever a new graphic came into view (making the animation appear less smooth). I surmised this was happening because the browser was loading the image into graphics memory (or from some cache into normal memory) and then unloading it after it came out of view. The solution, which seems to be working, is to combine all the images into a single sprite image and only display the portion appropriate for each section of the page (that way, there is only one image and it is always visible, so it always stays in graphics memory). Such a workaround should not be necessary (not to mention it increases overall file size and makes image management more complicated). :|

                Thou mewling ill-breeding pignut!

                L Offline
                L Offline
                Luc Pattyn
                wrote on last edited by
                #7

                any flock of browsers in particular? :)

                Luc Pattyn [My Articles] Nil Volentibus Arduum

                A 1 Reply Last reply
                0
                • L Luc Pattyn

                  any flock of browsers in particular? :)

                  Luc Pattyn [My Articles] Nil Volentibus Arduum

                  A Offline
                  A Offline
                  AspDotNetDev
                  wrote on last edited by
                  #8

                  IE and Chrome. Firefox actually seems to handle it well.

                  Thou mewling ill-breeding pignut!

                  1 Reply Last reply
                  0
                  • A AspDotNetDev

                    I am working on a webpage that is heavy with graphics and has a lot of vertical scrolling animations. During the vertical animation, it would pause for a fraction of a second whenever a new graphic came into view (making the animation appear less smooth). I surmised this was happening because the browser was loading the image into graphics memory (or from some cache into normal memory) and then unloading it after it came out of view. The solution, which seems to be working, is to combine all the images into a single sprite image and only display the portion appropriate for each section of the page (that way, there is only one image and it is always visible, so it always stays in graphics memory). Such a workaround should not be necessary (not to mention it increases overall file size and makes image management more complicated). :|

                    Thou mewling ill-breeding pignut!

                    D Offline
                    D Offline
                    dunno01
                    wrote on last edited by
                    #9

                    AspDotNetDev wrote:

                    working on a webpage that is heavy with graphics and has a lot of vertical scrolling animations

                    Why choose a webpage for such purposes? In the old days we would have written a nice little client application. Browsers are for browsing. :)

                    A 1 Reply Last reply
                    0
                    • D dunno01

                      AspDotNetDev wrote:

                      working on a webpage that is heavy with graphics and has a lot of vertical scrolling animations

                      Why choose a webpage for such purposes? In the old days we would have written a nice little client application. Browsers are for browsing. :)

                      A Offline
                      A Offline
                      AspDotNetDev
                      wrote on last edited by
                      #10

                      Things like this work much better as marketing tools than client applications (note: that's not exactly what the website I'm working on does, but it has similar ideas). :)

                      Thou mewling ill-breeding pignut!

                      1 Reply Last reply
                      0
                      • A AspDotNetDev

                        I am working on a webpage that is heavy with graphics and has a lot of vertical scrolling animations. During the vertical animation, it would pause for a fraction of a second whenever a new graphic came into view (making the animation appear less smooth). I surmised this was happening because the browser was loading the image into graphics memory (or from some cache into normal memory) and then unloading it after it came out of view. The solution, which seems to be working, is to combine all the images into a single sprite image and only display the portion appropriate for each section of the page (that way, there is only one image and it is always visible, so it always stays in graphics memory). Such a workaround should not be necessary (not to mention it increases overall file size and makes image management more complicated). :|

                        Thou mewling ill-breeding pignut!

                        A Offline
                        A Offline
                        Andre Gardiner
                        wrote on last edited by
                        #11

                        I guess, you need a graphic designer to help you with those images. The larger the images are the more processing time it takes to load properly. :thumbsup: Rendering images I realize is important, I would compare images with font because each font has different load times. That's why most people use .gif formats. :cool:

                        Sir.Dre http://www.andorum.com

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups