random1 Posted November 18, 2008 Share Posted November 18, 2008 Hey All, I'm using a few Javascript frameworks: jquery, prototype and mootools as external .js files. All up they take up around 250KB. Is this reasonable for modern websites? Should I try to compress the .js files or stick to 1 framework, not 3? Quote Link to comment https://forums.phpfreaks.com/topic/133163-solved-javascript-file-size/ Share on other sites More sharing options...
JasonLewis Posted November 18, 2008 Share Posted November 18, 2008 Why are you using all 3? I dislike Prototype, found it hard to use. Mootools was pretty bad also. I found jQuery to be suitable for everything that I needed. And use the minified version of it as well, from memory its only 50kb and is the best one to use. Quote Link to comment https://forums.phpfreaks.com/topic/133163-solved-javascript-file-size/#findComment-692558 Share on other sites More sharing options...
RichardRotterdam Posted November 18, 2008 Share Posted November 18, 2008 Using all 3 is a bit pointless using just one would be enough since you can achieve the same thing with all of these frameworks. I wouldn't call any of these bad though they all just aim for different things. mootools main goal is to be easy for OO developers while being as small as possible in file size jQuery is focused on CSS for the selectors which makes it the best choise for designers and prototype looks very much like mootools only bigger in filesize as for compressing. you can download all these frameworks as compressed files Quote Link to comment https://forums.phpfreaks.com/topic/133163-solved-javascript-file-size/#findComment-692561 Share on other sites More sharing options...
BoltZ Posted November 18, 2008 Share Posted November 18, 2008 The longer the user has to wait for the page to reload the unhappier they will be with your site. Use one framework, jQuery is my recommendation Quote Link to comment https://forums.phpfreaks.com/topic/133163-solved-javascript-file-size/#findComment-692641 Share on other sites More sharing options...
random1 Posted November 18, 2008 Author Share Posted November 18, 2008 Thanks all, I'll use jquery Quote Link to comment https://forums.phpfreaks.com/topic/133163-solved-javascript-file-size/#findComment-692999 Share on other sites More sharing options...
BoltZ Posted November 19, 2008 Share Posted November 19, 2008 Dunno if you know this but their site is jQuery.com I wouldnt recommend leraning it from there. I tried and failed miserably. Quote Link to comment https://forums.phpfreaks.com/topic/133163-solved-javascript-file-size/#findComment-693142 Share on other sites More sharing options...
JasonLewis Posted November 19, 2008 Share Posted November 19, 2008 What did you have trouble with on their website? I found their docs lacking somewhat, but I found it useful for finding out different selectors and what not. Quote Link to comment https://forums.phpfreaks.com/topic/133163-solved-javascript-file-size/#findComment-693179 Share on other sites More sharing options...
BoltZ Posted November 19, 2008 Share Posted November 19, 2008 For a beginner who had no experience it was hard Quote Link to comment https://forums.phpfreaks.com/topic/133163-solved-javascript-file-size/#findComment-693403 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.