homepage Welcome to WebmasterWorld Guest from 54.205.105.23
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
dilemma over libraries and load times
jamie

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4390905 posted 9:10 am on Nov 25, 2011 (gmt 0)

hi,

we use jquery everywhere in the site. however we outsource our major sales engine to a company which uses prototype. the previous version of their sales engine was simple enough for me to convert all the code from prototype to jquery, so that our visitors don't have to load two libraries and to keep the same ui.

however the upgraded version of their software continues to use prototype and is now too complicated for either me or them to port to jquery without a lot of stress.

even gzipped and minified, this means that a visitor clicks on a buy now button and then has to load 150 kb of new js; and also has to deal with a slightly different ui (datepickers, dialogs, etc).

the thing is we really need the upgrade to keep step with the competition.

should i just bite the bullet and not worry about the extra load? or should i offer to help them port it to jquery? (yikes)

thanks for any inspiration :)

jamie

 

enigma1

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4390905 posted 6:10 pm on Nov 25, 2011 (gmt 0)

Can they supply only the necessary sales part of javascript? It could be possible so the ui is from jquery and you don't have to port from scratch everything.

jamie

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4390905 posted 3:55 pm on Nov 27, 2011 (gmt 0)

hi enigma, that's not a bad idea - keeping the code needing prototype to a minimum and loading jquery as well. visitors will already have cached jquery and the ui, so they'd only have to load prototype.

i'd have to look at naming conventions, so they play well together.

that is probably quite a workable solution. thanks for thoughts!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved