| Author |
Message |
drath D

Joined: 27 Sep 2005 Posts: 1743 Location: Canada
|
Posted: Mon Mar 30, 2009 10:08 pm Post subject: window.addEvent 'domready' |
|
|
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
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
|
Posted: Tue Mar 31, 2009 6:49 am Post subject: |
|
|
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
|
Posted: Tue Mar 31, 2009 8:07 am Post subject: |
|
|
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
|
Posted: Tue Mar 31, 2009 12:01 pm Post subject: |
|
|
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
|
Posted: Tue Mar 31, 2009 1:24 pm Post subject: |
|
|
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
|
Posted: Thu Apr 02, 2009 8:31 am Post subject: |
|
|
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
|
Posted: Thu Apr 02, 2009 12:27 pm Post subject: |
|
|
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
|
Posted: Fri Apr 03, 2009 1:45 pm Post subject: |
|
|
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
|
Posted: Sat Apr 04, 2009 12:11 pm Post subject: |
|
|
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
|
Posted: Sun Apr 05, 2009 3:28 am Post subject: |
|
|
| 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
|
Posted: Mon Apr 06, 2009 9:03 am Post subject: |
|
|
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
|
Posted: Fri Apr 10, 2009 8:58 am Post subject: |
|
|
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
|
Posted: Tue Apr 14, 2009 7:29 am Post subject: |
|
|
| 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 |
|
| |
|
|
|