I like the idea of extending JavaScript, but wouldn't this require the support of every major browser manufacturer?

JavaScript is mainly executed client-side. PHP is executed server-side. It sees to me that there is a lot of server-side code that you just can't port to the client. That's not a language issue, it's an architectural issue.

I like the idea of extending JavaScript, but wouldn't this require the support of every major browser manufacturer?

JavaScript is mainly executed client-side. PHP is executed server-side. It sees to me that there is a lot of server-side code that you just can't port to the client. That's not a language issue, it's an architectural issue.

yes, as the javascripts are executed client side thats why I was wondering about the security issues that may occur and most of the could obvoiusely cannot be executed client-side.

But at the same time I suppose its pretty good for mini sites as it will help in much faster loading of pages similar to regular html pages.