|
Recent
Articles |
Creating An RSS 2.0 Feed If you can learn HTML, you can easily learn how to build your own RSS 2.0 feeds. I'll take you through the steps to creating an RSS feed from scratch. Step 1: XML Declaration. Since RSS 2.0 must validate as XML...
Hit Counter 2.0, Or "Web 2.0 Metrics" Way back in the early days of the Web (you know, before AdSense, blog spam, web mail, and dynamic HTML) were these things called hit counters. The Wikipedia article says a few things that I'll just quote outright.
The ROR Advantage: No Spider Discrimination! Search engine optimization is a very complex science, but at its heart is the simple rule: to format your website in such a way that spiders can immediately recognize and index its content.
Webtop, RIA, And "Webified" There were some interesting discussions late last week regarding Rich Internet Applications (RIA), a new term called "webified", and the webtop.
Firefox 2 Beta 2 Available To You The obligatory notice about the Firefox 2 Beta 2 browser being a developer preview release made available for testing purposes only has been duly noted. Now start those FTP clients and grab that...
Go Jam With Google Code The fourth annual coding competition presented by Google offers the top 100 programmers in the contest cash prizes.
WYSIWYG and Wikis Notes from a technical session at Wikimania on WYSIWYG. Christoph Sauer questions if WYSIWYG is a good thing, based on his experience with a wiki within his technical university in Germany...
Yahoo Search SDK Updated Newer libraries and new languages for Yahoo Search's software development kit have brought support for Ruby, Lua, and Ajax widgets to developers.
Webmaster Questions For CMS Developers Before Oneupweb, I worked at an online children's store. One of my many duties there (my desk was always covered in toys) was to manage our store's migration to an entirely new e-commerce platform.
|
|
|
11.01.06
Using External JavaScript Source Files
BySasch Mayer
By now most web designers and developers know that JavaScript causes a real headache for search engine spiders.
There are however a number of scripts which, whilst not absolutely essential to the functioning of a site, are nevertheless very handy.
So where do you draw the line between keeping your page as search engine friendly as possible and including reams of JavaScript to achieve the desired effects?
You may be surprised to learn that there is an alternative which keeps search engine spiders (reasonably) happy whilst drastically cutting down on the necessary scripts within any given web page.
External JavaScript Source Files
Let's take the humble "Add Bookmark" script as an example (please note that I have replaced the < > brackets with [ ] brackets so as to be able to display the code properly within this article).
By placing the script's function into an external folder and file (/java/bookmark.js for example) you will be able to streamline your code down to the following:
It's worth remembering that this is probably one of the simplest examples of JavaScript out there and that the savings in terms of code are going to be substantial with larger scripts.
This method is also worth its weight in gold, so to speak, if you are running a number of scripts on the same page.
Just remember to create a different source file for each script, so as not to confuse matters unnecessarily.
Through the use of external JavaScript files you not only save yourself having to write (or even copy/paste) the same bulky scripts again and again, you are also saving search engine spiders from becoming seriously disillusioned with your web page and going elsewhere in search of easier prey.
Always remember that any web site should make a search engine's life as easy as possible.
If you do use JavaScript in your pages, this approach will prevent unnecessary complications when having your site indexed, whilst at the same time easing your task of coding.
About the Author: An accomplished copywriter, Sasch Mayer has been writing content for web and print for well over a decade.
He is currently living in the Republic of Cyprus and working under contract to IceGiant Web Design.
|