---- Umar Zubair <[EMAIL PROTECTED]> schrieb: > I am using MyFaces with Tomahawk. My application is in production. Web > crawlers often come to my site to index pages. So html code produced by the > application should be Search engine optimized. > > > > The problem is actual content of my page starts after rendering javascript > having a lot of blank lines both put in by MyFaces. I want to put actual > content of my page on start of html to help crawlers to read actual content > efficiently. > > > > Please let me know how can I get rid of incline javascript or atleast move > javascript after actual content of page? And how can I remove blank lines > generated just after java scripts?
I doubt very much that moving the javascript is possible. In many cases it really needs to be in a specific location in the file to work properly. Deleting blank lines can be done fairly easily by writing a ServletFilter. Or you could submit a patch to the tomahawk ExtensionsFilter to do this. Or perhaps the htmltidy filter (tidy.sourceforge.net) might do what you need. Regards, Simon

