Lifelesspeople.com

 Forum FAQsForum FAQs  KnowledgebaseKnowledgebase  RulesRules   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   HostingHosting   RegisterRegister 
 DonateDonate   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

window.addEvent 'domready'  Share

 
Lifelesspeople.com Forum Index -> Web Architects' Abode
Post new topic   Reply to topic View previous topic :: View next topic  
Author Message
drath
D


Joined: 27 Sep 2005
Posts: 1743
Location: Canada

PostPosted: Mon Mar 30, 2009 10:08 pm    Post subject: window.addEvent 'domready' Reply with quote

Currently I'm wrapping my JS functions in a

Code:

window.addEvent('domready', function() {
//STUFF
}); 


The problem is simple: Internet Explorer waits to run this until after everything in the document is loaded - every other browser does it first. I need a fix. I'm currently using the mootools framework. I know there was a way around this using a plugin for the prototype framework - but changing is not an option in this case Sad

Thanks guys!
_________________
The Gamer's Journal | Online Portfolio | Half-Life Library | Kokaro
Back to top
 
LP-SolidRaven
Evil Belgian Waffle


Joined: 06 Jun 2004
Posts: 8150
Location: Belgium

PostPosted: Tue Mar 31, 2009 6:49 am    Post subject: Reply with quote

In what part of the document are you using it?
_________________
Dilly dally, shilly shally.
Back to top
 
drath
D


Joined: 27 Sep 2005
Posts: 1743
Location: Canada

PostPosted: Tue Mar 31, 2009 8:07 am    Post subject: Reply with quote

It's being called as an external .js file in the document's head; however, I have also tried doing it inline in the head section without change in speed for IE.
_________________
The Gamer's Journal | Online Portfolio | Half-Life Library | Kokaro
Back to top
 
LP-SolidRaven
Evil Belgian Waffle


Joined: 06 Jun 2004
Posts: 8150
Location: Belgium

PostPosted: Tue Mar 31, 2009 12:01 pm    Post subject: Reply with quote

You could delay the page being shown I guess.
_________________
Dilly dally, shilly shally.
Back to top
 
marinaroz
Grey Scaled


Joined: 04 Mar 2004
Posts: 3101
Location: Israel

PostPosted: Tue Mar 31, 2009 1:24 pm    Post subject: Reply with quote

Why is this causing a problem for you?

From my own experience with JavaScript, I've noticed that some DOM related stuff (like, getting the height of an element) won't work with IE on the fly, but will work once the page is loaded. Firefox doesn't seem to have that problem, but for cross browser compatibility's sake I just call the scripts after the whole thing is loaded, and that is it.
_________________
Tarakana NET
Back to top
 
drath
D


Joined: 27 Sep 2005
Posts: 1743
Location: Canada

PostPosted: Thu Apr 02, 2009 8:31 am    Post subject: Reply with quote

I'm using fx.slide which start toggled off at the beginning, so you may expand them after the document loads. So for internet explorer... they all appear open for a second, but visible enough to be annoying especially when navigating to other pages (it's used for the navigation).
_________________
The Gamer's Journal | Online Portfolio | Half-Life Library | Kokaro
Back to top
 
LP-SolidRaven
Evil Belgian Waffle


Joined: 06 Jun 2004
Posts: 8150
Location: Belgium

PostPosted: Thu Apr 02, 2009 12:27 pm    Post subject: Reply with quote

Add the links using javascript. That way they'll have the same delay.
_________________
Dilly dally, shilly shally.
Back to top
 
drath
D


Joined: 27 Sep 2005
Posts: 1743
Location: Canada

PostPosted: Fri Apr 03, 2009 1:45 pm    Post subject: Reply with quote

Ya I was thinking about that too; however, that will basically destroy any SEO for the site as search engines don't include javascript written content - and since it's navigation, spider crawling will be almost non-existent.
_________________
The Gamer's Journal | Online Portfolio | Half-Life Library | Kokaro
Back to top
 
LP-SolidRaven
Evil Belgian Waffle


Joined: 06 Jun 2004
Posts: 8150
Location: Belgium

PostPosted: Sat Apr 04, 2009 12:11 pm    Post subject: Reply with quote

you can solve that by creating a site map.
_________________
Dilly dally, shilly shally.
Back to top
 
spock
Lifeless Person


Joined: 23 Mar 2005
Posts: 3133
Location: The Netherlands

PostPosted: Sun Apr 05, 2009 3:28 am    Post subject: Reply with quote

drath wrote:
I'm using fx.slide which start toggled off at the beginning, so you may expand them after the document loads. So for internet explorer... they all appear open for a second, but visible enough to be annoying especially when navigating to other pages (it's used for the navigation).

You could hide the links with css (display:none;) and then make them visible with javascript. In this way you won't ruin the SEO, and it will still be usable by people with javascript disabled.
_________________
My new site
Back to top
 
drath
D


Joined: 27 Sep 2005
Posts: 1743
Location: Canada

PostPosted: Mon Apr 06, 2009 9:03 am    Post subject: Reply with quote

Yep, that's what I had to do eventually. I was wondering though, does anybody know if using CSS statements like "display:none" will actually hurt SEO though? Are search engines smart enough to ignore things that are "display:none". I remember hearing somewhere (years ago) that people were exploiting search engines by having paragraph-length keywords and stuff like that set to "display:none" to get them hits - so does Google now ignore everything that is display:none?

Thanks everybody.
_________________
The Gamer's Journal | Online Portfolio | Half-Life Library | Kokaro
Back to top
 
spock
Lifeless Person


Joined: 23 Mar 2005
Posts: 3133
Location: The Netherlands

PostPosted: Fri Apr 10, 2009 8:58 am    Post subject: Reply with quote

Well, there are rumours Google also indexes CSS to prevent getting yourself an higher ranking trough hidden text. However, I don't know if that's true. And even if it's true, I think there should be a difference between legitimate use like yours and using it to hide text with a lot of keywords.
_________________
My new site
Back to top
 
marinaroz
Grey Scaled


Joined: 04 Mar 2004
Posts: 3101
Location: Israel

PostPosted: Tue Apr 14, 2009 7:29 am    Post subject: Reply with quote

drath wrote:
Yep, that's what I had to do eventually. I was wondering though, does anybody know if using CSS statements like "display:none" will actually hurt SEO though? Are search engines smart enough to ignore things that are "display:none". I remember hearing somewhere (years ago) that people were exploiting search engines by having paragraph-length keywords and stuff like that set to "display:none" to get them hits - so does Google now ignore everything that is display:none?

Thanks everybody.


I've heard some time ago that Google does ignore content marked by display:none, no idea whether it's true or not, but it does make some sense. You could add a sitemap to your site, though, or submit a Google Sitemap, and then all your pages will get indexed anyway.
_________________
Tarakana NET
Back to top
 
Display posts from previous:   
Post new topic   Reply to topic    Lifelesspeople.com Forum Index -> Web Architects' Abode All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Home | Hosting | News | Forum | Links | System Status | About | Archive | Donate ]
Powered by phpBB © 2001, 2002 phpBB Group
All trademarks and copyrights on this page are owned by their respective owners. Posts and comments are owned by the poster. Everything else © 2001 - 2007 Lifelesspeople.com