1

What happens when you scroll up/down a page?
Does the page stay as it is as it moves out of your screen's borders or does it delete itself for resource purposes?
I just thought that while scrolling through devRant and YouTube (which I do all the time).

Comments
  • 1
    It's very complicated. Every browser handles rendering its own way - and every site is capable of running scripts to optimize scrolling.
  • 1
    Most modern browsers manage a CSSOM and decide how to render based on that. Some of screen rendering is "ignored" until visible.
  • 0
    @GhostInTheShell Thanks, I never really thought about what happens past the screen so I thought I'd ask now.
  • 6
    I once made a 10 km long white web page because I was curious to see how browsers would handle it. It was quite interesting. To my surprise, ie actually had the best results not being affected at all by the long page while Firefox got slow and chrome started to render strange artifacts as I scrolled down.
    This was a few years ago so maybe the results would be different today.
  • 2
    There's actually a great (free) course on Udacity on Website Performance Optimization about how browsers render pages. Would definitely recommend it to any web developer.
    https://udacity.com/course/...
  • 0
    @Olverine how do you convert page length to kilometers? Is that like a metric thing :P
  • 2
    @stevenliemberg You use cm (centimeters) as units in css. 1km = 100 000cm
Add Comment