SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Wizard big_al's Avatar
    Join Date
    May 2000
    Location
    Victoria, Australia
    Posts
    1,661
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just wondering if anyone knew if there was a definite speed advantage to VBScipt as opposed to JavaScript?

  2. #2
    SitePoint Zealot Ace Nova's Avatar
    Join Date
    Aug 2000
    Posts
    197
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dont get me wrong but isnt VBScript only supported by IE
    Ace Nova
    Football Man
    InternetSprite.Com - Coming Soon!

  3. #3
    AdSpeed.com Son Nguyen's Avatar
    Join Date
    Aug 2000
    Location
    Silicon Valley
    Posts
    2,241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  4. #4
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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
    Where the World Once Stood
    the blades of grass
    cut me still

  5. #5
    SitePoint Guru
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    854
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  6. #6
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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 why It can't be because ASP is tweaked, could it?

    Vinny
    Where the World Once Stood
    the blades of grass
    cut me still

  7. #7
    SitePoint Guru
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    854
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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 why It can't be because ASP is tweaked, could it?
    Oops...I of course meant JScript vs VBScript. My bad.

  8. #8
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi duckie,

    In that case I guess it's because M$ programmers aren't that concerned about JScript.

    Vinny
    Where the World Once Stood
    the blades of grass
    cut me still


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •