Some SEO experts will argue that google for example will mark you down for
hidden content in a page as it may think you are trying to trick the search
engine and some will argue that it doesnt matter.
I personaly do not know which way is faster but i prefer the Dom approach
as it does not load any html until something triggers it to - which
increases load time and doesnt put an element somewhere that amy be
displayed for browsers that dont use css or javascript.
Alex Mcauley
http://www.thevacancymarket.com
----- Original Message -----
From: "kimbaudi" <kimba...@gmail.com>
To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com>
Sent: Friday, January 08, 2010 6:50 AM
Subject: [Proto-Scripty] Question on performance and SEO optimization
regarding javascript to create elements
Hi, I have come up with 2 ways to create a modal dialog. The first way
is to statically create the html with a style of display:none; and
using event handlers to show/hide the html. The second way is to
dynamically create the html using Prototype (new Element(tagName[,
attributes]). Which way is "better"? Is there an argument for using
one method over the other or does it really not matter? Thanks for
your opinion.
--------------------------------------------------------------------------------
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to
prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.