Just wondering if anyone knew if there was a definite speed advantage to VBScipt as opposed to JavaScript?
| SitePoint Sponsor |





Just wondering if anyone knew if there was a definite speed advantage to VBScipt as opposed to JavaScript?
Dont get me wrong but isnt VBScript only supported by IE





Yes, it's only supported by MS products.
However, about its speed, I don't think it matters, since when the code loaded into the client's browser, it's there very fast to execute, unlike server-side scripts.
Unless the VBscript/JS itself is huge (and that would not be the case with a normal web page!)
- Son Nguyen
AdSpeed.com - Ad Serving and Ad Management Made Easy




Hi,
As 123finder implies, the speed has more to do with the client's machine than anything else -- since the code will be running on the machine, not the server. As surpernovanetworks says: vbScript is primarily an IE product. Other browsers can run it only with a plug-in (which one I have no idea and don't really want to know, but I'm sure M$ has one out there). That implies extra processing time.
If you are worrying about response time, I would tweak the code itself, whatever the language. For example, in general, a switch statement would execute faster than a series of if/else statements. Also, external css & js files will speed processing -- if you require the same code in more than one page.
Vinny
moderator at:Webxpertz Forums




If, seem to be a moot point since like others before me have mentioned, only IE supports VBScript.
However in ASP files VBScript has demonstrated that it is a better performer in most areas compared to Javascript, but that's only Server side so its a little off-topic.




Hi duckie,
I'm presuming you mean ASP files that use javascript versus ASP files that use vbScript? What about ASP & M$'s version of javascript -- JScript -- does that also run faster than javascript? And if it does, I wonder whyIt can't be because ASP is tweaked, could it?
Vinny
moderator at:Webxpertz Forums




Oops...I of course meant JScript vs VBScript.Originally posted by Vincent Puglia
I'm presuming you mean ASP files that use javascript versus ASP files that use vbScript? What about ASP & M$'s version of javascript -- JScript -- does that also run faster than javascript? And if it does, I wonder whyIt can't be because ASP is tweaked, could it?
My bad.




Hi duckie,
In that case I guess it's because M$ programmers aren't that concerned about JScript.
Vinny
moderator at:Webxpertz Forums
Bookmarks