Results 1 to 10 of 10

Thread: Combining jQuery script to reduce load time

  1. #1
    Join Date
    Feb 2010

    Combining jQuery script to reduce load time

    I found out that (after an system update?) IE8 no longer loads the content on my website www.beautifullalaland.com. I guess it has to do with the ridiculous amount of jQuery calls that some of the simple functions requir. I'm a jQuery newbie, been using JS for years but never a library (and never again if you ask me, what a bloody mess).

    Is there a safe way to combine jquery_002.js, jquery.js, jquery_003.js and jquery-1.3.2.js?
    What desert?

  2. #2
    Join Date
    Feb 2010
    That's jquery_002.js, jquery.js, jquery_003.js and jquery-1.4.2.min.js.

    Btw, visit a page with a gallery to check functionalities and click next> or <back: http://www.beautifullalaland.com/greenpeace.html
    Last edited by Pris; 08-14-2010 at 08:43 AM.

  3. #3
    Join Date
    Feb 2010
    No one?
    What desert?

  4. #4
    Join Date
    Jul 2009
    As you are calling those three files(jquery.js, jquery_002.js, jquery_003.js) from one content page, then you could, likely, combine all of your jquery code from those 3 files(copy and paste) onto 1 file that gets called once, instead of 3 calls:3 files on the web server.

    FYI JQuery is absolutely incredible if you stick with it for a bit.

  5. #5
    Join Date
    Feb 2010
    Thanks WestWeb.
    Wouldn't the content of that file have duplicate functions, or, aren't those jQuery files older versions of 1.4.2? Excuse my n00b questions.

    And in al honesty, jQuery offers some really cool additions to websites without having to use Flash. Just got a bit annoyed by these stupid issues. I should blame IE instead.
    What desert?

  6. #6
    Join Date
    Jul 2009
    Ah yes, I just looked at the content of those files, and to answer your first 2 question's... It looks like there is one old version of the jquery library(jquery-1.3.2) you can probably throw away. File name: jquery_002.js.

    There are 2 other files for JQuery.localscroll and JQuery.scrollto functionality(never tried those myself); it looks like they could be combined without conflicting with eachother: jquery.js + jquery_003.js. It's hard to say, for sure, until you test it.

    After that, you'll be down to 2 calls to the server: one for the JQuery library, and one for the extra functionality on your page, this is good, really.

    It's hard not to get angry when you're having issues with IE. I think this is one of the big reasons I started using JQuery actually.

  7. #7
    Join Date
    Feb 2010
    Thanks again, will delve into it later.
    Just found my original post back on tuts9.com, tagged with "bloody mess"
    What desert?

  8. #8
    Join Date
    Feb 2010
    Removing the old jQuery JavaScript Library v1.3.2 (jquery_002.js) removes the scroll function of the panels. Combining jquery.js + jquery_003.js works perfectly though!

    Can't test live in IE, so I'll post back later to let you know if it solved the IE mess.
    What desert?

  9. #9
    Join Date
    Feb 2010
    Just found this jQuery Firebug add-on, FireQuery. Will test later.
    What desert?

  10. #10
    Join Date
    Feb 2010


    I realize it's not done to revive an old thread, but I moved abroad and had some other things on my mind. Back to business now.

    I moved the order of jQuery scripts (found an error through FireQuery) and moved the link to the .css file down to right above the end head tag. Overall this improved the load time of the site tremendously in Safari, Camino, Opera and Firefox.

    The site shows up in IE now, yet definitely not how it's supposed to look. I figured the problem has to do with the class "hyphenate" as the main problem seems to occur with hyphenated texts. Note: I use the same script on other websites without any problem.

    But, as the code is an enormous mess by now I've decided to start from scratch which seems less of a time waster than trying to hack the site into oblivion.
    Last edited by Pris; 02-18-2011 at 09:49 AM.
    What desert?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.10559 seconds
  • Memory Usage 2,940KB
  • Queries Executed 15 (?)
More Information
Template Usage (32):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (10)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (73):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • bbcode_parse_start
  • postbit_imicons
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates