Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.

Javascript query

Discussion in 'Website Design' started by MattB, Dec 18, 2014.

Thread Status:
Not open for further replies.
  1. MattB United Kingdom

    MattB Active Member

    Joined:
    Nov 2010
    Posts:
    137
    Likes Received:
    6
    Hey guys,

    Had a particular site coded a few years back, and my coder utilised both jQuery and Prototype (& another library which I've since removed).

    In an ideal world, I'm hoping to chop out both jQuery & prototype and just have standalone javascript. I'm not actually utilising Javascript for too many things.

    Would anyone knowledgable be able to drop me a PM to take a quick look and tell me if this would be possible?

    Reason I'm looking to do this is to improve page load time as jQuery & Prototype together are pretty large.

    Thanks,
    Matt
     
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
    IWA Meetup
     
  3. martin-s United Kingdom

    martin-s Well-Known Member

    Joined:
    Jul 2012
    Posts:
    3,468
    Likes Received:
    270
    I wouldn't recommend moving from jQuery to plain JS - more likely the other way around.

    If you slim down and minify the jQuery library, the overhead is pretty minimal.

    Whereas the boost to development ease and time taken is significant.
     
  4. seemly

    seemly Well-Known Member

    Joined:
    Feb 2011
    Posts:
    1,607
    Likes Received:
    493
  5. MattB United Kingdom

    MattB Active Member

    Joined:
    Nov 2010
    Posts:
    137
    Likes Received:
    6
    Thanks both for comments.

    Interested in how best to go about minifying the library's.... at the moment my site is using the below... it must only be using a small fraction of that.

    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

    I've sent you a PM Martin.
     
  6. nick-harper

    nick-harper Active Member

    Joined:
    Jun 2011
    Posts:
    400
    Likes Received:
    7
Thread Status:
Not open for further replies.