- This topic is empty.
-
AuthorPosts
-
June 12, 2011 at 5:17 pm #33100
minero
MemberHi all!
I have an issue with my css structures always refreshing, that is the browser loads all elements for every click on a navigation link. As such, it creates a blinking/flashing effect which is of course very annoying. For ex: http://www.pickapp.se
Can anyone see what I am doing wrong??
Best regards MichaelJune 12, 2011 at 5:57 pm #73252chrisburton
ParticipantSomething like this?
click the bottom links.
June 12, 2011 at 6:07 pm #73253minero
MemberIndeed, very elegant as well. In practice I am not looking for something this sophisticated, with animated navijation transitions but your structural design does not reload/flash every time you navigate, and mine does. Is there a css command I am using/not using, by any chance?
June 12, 2011 at 7:02 pm #73259chrisburton
ParticipantThat website is actually using ajax to display like that. Try removing your background to see if that is the cause.
Edit: I think your header is the cause. You have your css stylesheet in between your javascript. Try putting your stylesheet first then javascript.
June 13, 2011 at 7:35 am #73288minero
MemberThanks for the ideas, unfortunatley they did not help. Pages still flash. With the body background set to a bg-color, then then content-box flashes instead. Any other suggestions? I have this issue with all my websites and it makes them look amateurish (more than they should by default of course hehe) :-(
June 13, 2011 at 7:39 am #73289chrisburton
ParticipantTry fixing these 70 errors
June 13, 2011 at 9:39 am #73293minero
MemberFixed most of them that could be of importance, the rest are mssing alt’s, some nested tags and script incosistencies from embedded objects that shouldnt affect the structure. The funny thing is that if you click on the navigation buttons one after the other for a while, especially the “Nyheter” one, you´ll see that once in a while, the structure do not refresh/flash… so there is indeed something weird going on :-S
June 13, 2011 at 10:19 am #73297chrisburton
ParticipantI would suggest going back and fixing the rest as you did not fix majority but only 25/70 of the errors and we’ll go from there.
June 13, 2011 at 10:33 am #73234TheDoc
MemberI don’t really see this flashing that you are referring to. There is a bit of a delay for your javascript to kick in, but that’s about it on my end.
June 13, 2011 at 10:44 am #73226minero
MemberOk, I will dig into the errors. In the meantime: it seems like different browsers interpret the structure differently. IE9 does not flash/reload thewhole page, only the background image (which is still strange) whereas Firefox does. And as I use FF for reference it is obviously desirable that it displays the content accordingly.
June 13, 2011 at 10:45 am #73217chrisburton
ParticipantIn Chrome 12 I get the flash.
June 13, 2011 at 1:25 pm #73158minero
MemberGuys, the page no longer flashes. I have eliminated some more errors but it was the embedded objects and the scripts on the right hand side (the ads) that caused it. Yet, this raises the question: since these are default ad-codes embedded, how can “all other” pages display them without causing such flashing effect? Im sure I am not the first one trying to use 4.01 strict :-) (But I guess its time to start using html5 doctype?)
June 13, 2011 at 1:28 pm #73159chrisburton
ParticipantYes, I would encourage using the HTML5 doctype at the least. I will try to find a solution on the embedded objects causing the flash.
June 13, 2011 at 1:32 pm #73160minero
MemberThanks, most appreciated!
Hmm, in IE9 the background-image reloads every time, it should be catched…
(At least html 5? Is there even newer ones?)
June 13, 2011 at 1:58 pm #73145chrisburton
ParticipantNo, I’m saying at the least add the doctype but you could use the new markup
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.