Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Does use of external .js menu files create problems?

         

latimer

3:04 pm on Sep 24, 2009 (gmt 0)

10+ Year Member



Could someone point me to threads on the use of external vs internal .js?

We created a new small site 3 months ago. The site uses an external .js file for the links located on the nav menu.

There are a few other links not located in the .js file.

Checking google and noticed that none of the pages that were only accessible from the .js file have been indexed, while the files available outside the .js file have been indexed, with the exception of two links on the .js file that were absolute links instead of relative.

We have changed all the links in the .js file to absolute to see if this might make a difference.

Also, any comments on the flow of page rank through an external .js file? It would seem that this would not be ideal as the page rank that should go direct to the links off of the homepage menu would now have to go to the .js external file first.

Below are examples of one of the lines on the external.js file before and after we changed to absolute link.

Appreciate any comments on this.

stm_aix("p0i12","p0i1",[0,"Menu Button Name Here","","",-1,-1,0,"menu-button-link-here.cfm","_self","","","","",0,0,0,"","",0,0,0,0,1,"#FFFFF6",0,"#FFFFF6",0,"images/image.jpg","images/image.jpg"],190,0);

stm_aix("p0i12","p0i1",[0,"Menu Button Name Here","","",-1,-1,0,"http://www.domain-name-here.com/menu-button-link-here.cfm","_self","","","","",0,0,0,"","",0,0,0,0,1,"#FFFFF6",0,"#FFFFF6",0,"images/image.jpg","images/image.jpg"],190,0);

tedster

9:25 pm on Sep 24, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Google is just now developing the ability to crawl js links of any kind, and I am not willing to depend on it at all. I would suggest that you offer another, straight HTML, crawlpath to those internal pages.

An HTML sitemap would probably do you a lot of good, for example. And replacing the js navigation would be my first choice. Whether the js file is external or on page is probably not going to make a difference. Using the full absolute URL might make a difference, but I'd still bet that even if you do get those pages indexed via this route, they won't be re-crawled as frequently as you like. And they may well not get indexed at all, even then.

latimer

9:40 pm on Sep 24, 2009 (gmt 0)

10+ Year Member



Thanks Ted!