Use a specified javascript engine?
Is it possible to use your own javascript engine in place of the browser's engine?
We have a cloud based JAVA app and uses a lot of javascript and ajax.
I don't know a ton about Java (just enough to get by), I'm an ajax programmer.
Mozilla has a javascript engine called rhino. Is that engine only for running javascript inside a native java app or can you use it in a java web app and use the rhino engine instead of th开发者_Go百科e browser's engine?
Maybe I misunderstand the point of Rhino?
The reason I would like this is obviously because Internet Explorer is way too slow. I have been optimizing my scripts like crazy and IE is still unacceptable.
You could interface with Node.js which runs its own instance of V8, Google's Javascript engine. All of the Javascript magic would be run on the server side. It's wicked fast too.
Rhino is for server side JavaScript. There is nothing you can do about what a client uses, you have to work around it.
The only thing like this that comes to mind is Googles Chrome Frame. It's a plugin for IE that allows pages to request that the chrome engine is used to render the page instead of IE. This includes chromes fast javascript engine. It sounds like this would solve your problem as long as your end users are able to install browser plugins.
精彩评论