WordPress.org

Ready to get started?Download WordPress

Forums

Do I need these scripts? (9 posts)

  1. aemberline
    Member
    Posted 5 years ago #

    I just realized that using wordpress adds a bunch of extra file size to my websites... not good! When I check the document size, the list includes about 75kb of scripts, including two 30kb ones:

    /wp-includes/js/jquery/jquery.form.js?ver=2.02
    wp-includes/js/jquery/jquery.js?ver=1.2.6

    Do I need these? I don't use javascript at all, and my site works fine with javascript turned off. Why do they need to be loaded?

    The site is graphics heavy, so I need to cut the document size down wherever I can. Please help!

    This is my site: http://www.thelostworkshop.com/design

  2. aemberline
    Member
    Posted 5 years ago #

    Does nobody know anything about this or am I posting in the wrong place?

  3. t31os
    Member
    Posted 5 years ago #

    I'm just checking what files reference those scripts for you... bear with me one minute...

  4. t31os
    Member
    Posted 5 years ago #

    I think the admin section uses the JQuery....

    First script referenced in the following file..
    wp-includes\script-loader.php

    Second script referenced in the following files..
    wp-includes\script-loader.php
    wp-admin\js\revisions-js.php

    I can't tell you if you can get away with removing them, however above are the only files that reference the mentioned scripts...

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    The jquery script does not get loaded into the normal public-viewable page unless your theme or one of your plugins loads it itself.

    It is needed for the admin pages, but that's wholly different.

  6. aemberline
    Member
    Posted 5 years ago #

    How would I be able to tell if a plugin was loading it?
    As far as I know my theme isn't loading it - It's a modified version of the basic theme. Does the basic theme load it?

  7. Saurus
    Member
    Posted 5 years ago #

    Go to your dashboards plugins page and then edit plugins tab. Look through the various plugin codes and see if there are any references to those files.

  8. aemberline
    Member
    Posted 5 years ago #

    Aha! It was the Contact Form 7 plugin causing the jquery stuff to load on every page of my site. Arg!

    I really want to have a contact form, but if it's going to add 60kb of extra bandwidth to every page then it's not worth it. Anybody have any ideas of a better way to have a contact form?

    Thanks for all your help.

  9. gariben
    Member
    Posted 5 years ago #

    How do we use the Google's jQuery library to save bandwidth?

    Thanks, Mike

Topic Closed

This topic has been closed to new replies.

About this Topic