Welcome to WebmasterWorld Guest from 188.8.131.52
Forum Moderators: incrediBILL
...if (top == self) self.location.href = "www.MyFrameset.com"...
I optimised many sites using frames. I must confess, I like to do that! ;)
I cannot tell if your pages are going to be penalised, but I swear you can get good results.
Generally I optimise my clients sites. I do not built them. The results are much better
3 months after the job but the whole site have been optimised. So I can't tell of any penality factor.
I recommend to use external script on your main pages and to feed well the <NOFRAMES> erea of the framesets.
Ideally, I build 1 frameset per main page. One funny thing, many of my sites score better with framesets than with main pages.
More details in this tread [webmasterworld.com]
- does the .js file have open and close <script> tags?
- Can I put html code into the .js file?
- What code is used to call the .js file?
When do you suppose Google will learn to penalize an external redirect .js?
The .JS file itself is pure text (Notepad or similar is fine, just save as .js instead of .txt).
The beauty is that no spider should grab a .js file at all, so monitor your logs and if a spider grabs any .JS file then it may well be starting to get smart to reading it.
<<- does the .js file have open and close <script> tags?>>
No, those should be removed.
<<- Can I put html code into the .js file?>>
Yes, but this can cause headaches sometimes.
<<- What code is used to call the .js file?>>
I recommend putting it in a robots.txt protected folder. I call it css.js so it looks like a sheep.
<<When do you suppose Google will learn to penalize an external redirect .js?>>
As late as possible! If robots and humans can't go in the folder where you keep thoses scripts everything should be fine! :)
The type attribute is required for the code to validate, and the language attribute is needed for older browsers.
Also, I assume that when and if SEs start dealing with external js redirects, they would have the brains NOT to penalize the kind of redirect kapow is talking about. There's no search engine persuasion going on, it's a conditional redirect that HELPS the user, and it still returns the content that the SE indexed.
That makes simple sense in that that way, people hiding irrelevant content behind an optimised doorway don't get a benefit, but a frameset loading script will still get the frameset page indexed properly. It is not a perfect solution, but it is the path of least damage.