htmlcssloadflickr

Set page load to black instead of white background?


Link to website:

http://www.ideagang.co/home.php

Is it possible to set the background to black when click from 1 page to another? Right now the website load perfectly with the black background, it's just that when I navigate from one page to another the page flickr for a second.....

Is there anyway to resolve this by setting the background to black when loading page internally?


Solution

  • Not using only CSS. The browser's default color for the background is white, so the flicker you see is the default coming through for a split second before it has a chance to read the CSS rule to make it black.

    The only way I can think of to get around this would be to load the first page, and then switch from page to page via javascript, loading them in to the exiting page. No reloads means no flicker. In my opinion, that is a ton of overhead for very little value, so I would suggest just living with it.