latanoprost ophth soln 2.5ml 0.005


latanoprost drug classification


therapeutic classification of latanoprost


latanoprost drops per bottle


latanoprost price comparison


latanoprost eye drops storage temperature


latanoprost pfizer eye drops side effects


latanoprost storage


buy latanoprost


latanoprost generic


latanoprost discount


latanoprost ophthalmic solution side effects


latanoprost generic bottle size


latanoprost 0.005 price


latanoprost ophthalmic price


latanoprost ophthalmic solution 0.005 side effects


latanoprost price canada


latanoprost ophthalmic solution cost


latanoprost eye drops refrigeration


latanoprost mechanism of action in glaucoma


latanoprost online pharmacy


latanoprost storage after opening


latanoprost ophthalmic


latanoprost


side effects of latanoprost ophthalmic solution


buy latanoprost online


latanoprost price increase


latanoprost 0.005 sol falcon


latanoprost generic cost


latanoprost eye drops classification


generic latanoprost


latanoprost 0.005 eye drops


latanoprost buy online


latanoprost ophthalmic solution 0.005 for dogs


latanoprost price walgreens


cheapest latanoprost


latanoprost order


latanoprost 0.005 sol


latanoprost api price in india


generic latanoprost ophthalmic solution


latanoprost ophthalmic solution 0.005 2.5ml


latanoprost buy


generic latanoprost package insert


latanoprost cost walmart


latanoprost room temperature storage


latanoprost 0.005 eye drops cost


latanoprost purchase


latanoprost generic available


latanoprost 0.005 side effects


latanoprost how many drops per bottle


latanoprost ophthalmic solution .005


latanoprost online bestellen


latanoprost generic manufacturers


buy latanoprost for dogs


generic latanoprost uk


latanoprost classification


latanoprost ophthalmic storage


latanoprost generic india


latanoprost for dogs


buy latanoprost ophthalmic solution


latanoprost drops for dogs


latanoprost eye drops storage


latanoprost online


how much does latanoprost cost without insurance


latanoprost ophthalmic solution 0.005


latanoprost generic side effects


latanoprost 0.005 eye drops price


how much does latanoprost ophthalmic cost


latanoprost online kaufen


cheapest price for latanoprost


latanoprost drops


latanoprost 0.005


cheap latanoprost


latanoprost ophthalmic nursing implications


latanoprost 0.005 eye drops side effects


latanoprost drops price


how much does generic latanoprost cost


latanoprost 0.05 mg/ml


latanoprost timolol eye drops side effects


latanoprost eye drops for dogs


latanoprost price costco


generic latanoprost problems


best price latanoprost


latanoprost cost costco


latanoprost rxlist


latanoprost generic price


latanoprost discount card


latanoprost timolol eye drops


where can i buy latanoprost eye drops


bcs classification of latanoprost


order latanoprost online


latanoprost price uk


latanoprost ophthalmic solution storage


latanoprost cheap


latanoprost ophthalmic solution for dogs


latanoprost price comparisons


latanoprost ophthalmic solution 0.005 price


latanoprost 0.005 solution


buy latanoprost eye drops


generic latanoprost cost


cost latanoprost


latanoprost ophthalmic cost


latanoprost 0.005 cost


generic latanoprost eye drops


latanoprost for dogs side effects


latanoprost sol 0.005 op


latanoprost prescription assistance


latanoprost sol 0.005 side effects


latanoprost 0.005 ophth soln 2.5ml


latanoprost price walmart


latanoprost ophthalmic solution 0.005 generic


latanoprost drops per ml


latanoprost 50 mg


where can i buy latanoprost


latanoprost prescription


latanoprost ophthalmic solution price


latanoprost eye drops price walmart


latanoprost cost uk


latanoprost 0.05 mg


latanoprost drops side effects


latanoprost dosage for dogs


latanoprost costco price


latanoprost eye drops price in india


latanoprost generic greenstone


latanoprost ophthalmic solution 0.005 msds


latanoprost 0.005 ophthalmic solution


latanoprost ophthalmic solution


latanoprost 0.005 oph soln


purchase latanoprost


latanoprost eye drops price uk


buy latanoprost uk


how much does latanoprost cost


discount latanoprost


latanoprost price india


latanoprost api storage conditions


latanoprost cost


latanoprost price in usa


latanoprost cost walgreens


latanoprost ophthalmic side effects


latanoprost cost cvs


latanoprost costco


latanoprost price


price latanoprost


latanoprost ophthalmic solution classification


latanoprost timolol maleate eye drops


when did generic latanoprost become available


order latanoprost


generic latanoprost manufacturers


latanoprost mechanism of action


latanoprost buy online uk

Stop jQuery loading in Wordpress

If, like me, you use Wordpress a lot, and you use MooTools as your main javascript library, you’ll probably have noticed that Wordpress calls the jQuery library automatically.

In fairness, I can see why they do this, the Wordpress admin area uses heavy jQuery and nearly all Wordpress plugins use jQuery in some way or another.

However, for some clients, I don’t necessarily want jQuery to load. I might be using MooTools as my javascript library, so having two libraries being called on my page is not only likely to lead to conflicts but it is also bad for page performance (loading time, etc).

After trying various suggestions, I finally stumbled across Aaron Saray‘s site which had this gem of information. I take no credit for this code whatsoever but I only found that page hidden under a few pages of Google so hopefully this blog post might help others find it easier.

The following code goes in header.php

<?php wp_deregister_script('jquery');wp_head(); ?> 

However, I have also run into problems with this because on a contact page, I had a jQuery contact form plugin. So I still needed jQuery to run on this page, so I used the following

<?php
if (is_page('Contact')) 
wp_head
();
else {
wp_deregister_script
('jquery');wp_head();
}
?> 

Hope this helps.

26 comments so far

  1. henryclare

    I am usind Drupal plugin for managing my website and I never used wordpress but for my second website I will utilize wordpress plugin.
    web engineering

  2. rolex homage

    Great article with excellent idea! I appreciate your post. Thanks so much and let keep on sharing your stuffs share my favorite watches site

  3. Your best friends-T3hairdryer

    T3hairdryerstore.com is an authorized of T3 hair tools retailer!
    Our products including T3 Hair Dryers, T3 Flat Irons , T3 Hair Straighteners, T3 Curling Irons, T3 Gift Set, T3 styling set and some other Hair Tools.T3 Hair meet the needs of all women like beauty.
    All products are 100% Authentic with 3 years warranty, Guaranteed plenty In Stock and we can arrange to shipping on time!
    Thank you and Happy Shopping!

  4. Sorteos

    Very Smart Tom…

    jQuery slows up all the pages, and loading it is unnecesary if you’re not using it.

  5. decking china

    Good articles supports,thanks

  6. decking china

    Good articles supports,thanks

  7. Web Hosting

    How can I do to activate Jquery only in some pages?

    Should I deactivate in others? or Only activate in the pages I Want?

  8. eder

    It’s a good article, thanks for sharing. I hope more people can read this article, it is so helpful that i should share it to my friends. By the way, i would like to share other good website: http://www.bags-seach.com  These are from the latest styles and fashion trends handbags, top level quality and reasonable price, welcome to visit it.

  9. CK underwear

    Very Smart Tom…jQuery slows up all the pages, and loading it is unnecesary if you’re not using it.

  10. public access golf australia

    Awesome! I don’t normally leave comments unless they really save me. And this did.
    I used a modified version of this so that it only loads jquery if the page is not single.php:

    <?php
    if (!is_single()) {
    wp_head();
    } else {
    wp_deregister_script(‘jquery’);wp_head();
    }
    ?>

  11. formaldress

    Trendress is the company registered in HongKong since 2008. With many years experience,  we are the best company for purchasing on discount wedding dresses , bridesmaids dresses, flower girl dresses, mother of bride dresses, and other formal dresses directly from Hongkong. Our dresses prices are very cheap in the market, and in the same time goods come with quality guarantee. We have exclusive contracts with many Chinese and Indian manufacturers, who continuously supply our warehouses with their latest dress models

  12. Crystal Jewelry

    Yeah I KNOW, THANK YOU FOR YOUR NOTE!

  13. Crystal Jewelry

    I DO WHAT YOU SAID.

    YOU ARE RIGHT, THANK YOU

  14. xiamenhenre

    I like these words
    Look at a person’s blood, just look at his hair to know;
    Look at a person’s intention, just look at his eyes to know;
    Look at a person’s worth, just to see his opponent would know;
    Look at a man’s taste, just look at his socks to know

  15. esghdstyler

    La Adquisición de Una Una inaceptable Para El Cabello Rizado You can causar da? O del pelo Que Fluye,ghd españa o incluso receptor experimentado Una plancha Lo suficientemente Fuerte COMO párrafo COOPERAR Con El Flujo de hair.To asegurar Que Usted obtiene Una plancha ghd real,ghd planchas Visita la Página oficial del cabello gHD alisadores sitio de Internet en Busca de Una licencia para ghd Minorista. CUANDO Usted embargo pecado ESTA, no està de Seguro Que plancha es Más Efectiva y el párrafo Usted Quiere El Pelo Distintivo, visite la PIEZA FAQ de la web page.planchas ghd En Un área metropolitana exactamente la Misma,comprar ghd probablemente sí dara Cuenta de Como Cuidar Su Herramienta de belleza Todo correctamente párrafo asegurarse de Que TIENE LA longevidad es Absolutamente necesario receptor experimentado.

  16. monster

    “People aren’t hearing all the music. Artists and producers work hard in the studio perfecting their sound. But people can’t really hear it with normal headphones. Most headphones can’t handle the bass, the detail, the dynamics. Bottom line, the music doesn’t move you. With Beats, people are going to hear what the artists hear, and listen to the music the way they should: the way I do.“- Dr. Dre

  17. jimmy choo heels

    I am currently experimenting with the notion of “relating” rather than being in “relationship.” This is a co-experiment in honoring the changeable, unpredictable dance with the unknown – when relating to a man who has chosen to be relating with me.jimmy choo heels How awkward to write/say it in this way – to not define and tidy up this dynamic exchange as a “relationship,” or even use the posessive word “my.”

  18. esghdstyler

    Stylers ghd españa pelo Que le ofrecemos la ONU Salón de Celebridades mirada recta, párr el qué habia Estado Buscando Desesperadamente DURANTE TANTO TIEMPO. Por Lo general, Su peluquero le aconsejamos Que utilice Algún Tipo de Protección Contra el Calor En El cabello de cuero cabelludo Su párrafo Que No Se Vea afectado Por los rayos de Calentamiento Constante de la plancha de pelo. Sin embargo,comprar ghd es Muy segura y no da? Ará tu cabello.ghd planchas Se calientan Muy rápidamente y sí consideraciones Muy segura Para El Cabello. De Hecho,planchas ghd ELLOS no terminan Quemando los pelos.

  19. xiamenhenre

    The information provided is very good, previously less contact with them, looked after, so I have more understanding in this regard. I really appreciate.
    tory burch miller
    tory burch miller.

  20. flyday

    This is a very good article. Thanks for sharing. I hope more people can read the article, it is so help, I should give my friend to share. By the way, I want to share other good web site: http://www.92tiantang.com

  21. alice

    thank you for your information ,the article is so great

  22. icebabes

    ICE BABES is an Importer, Manufacturer and Wholesaler of top quality ladies clothing based in the East End of London. We have been supplying independent retailers and boutiques in the U.K and throughout Europe for the last 20 years. With our in house designers we manufacture and source our ranges from proven suppliers in both the UK and Europe so we can always be sure of obtaining up to the minute designs. Our aim is to bring you value and quality with fast delivery, backed up with a reliable, knowledgeable & friendly service.

  23. completegolfer

    Complete golfer is the Uk’s leading on line golf retailer with a huge range of golf equipment, golf clubs, golf clothing, and golf shoes from all the leading brands Including Nike Golf, TaylorMade, Callaway , Mizuno and Titleist. They have one of the largest choice of Callaway golf clubs including Callaway drivers , Callaway irons and the new Callaway Razr with free orders anywhere in Europe on orders over £150 and free next day delivery in the uk on all orders ,  the complete golfer is truly a one stop online shop for the sport you love.

  24. NdAdeDqp

    SsUmWHlV

  25. Paul

    You can also pop:

    wp_deregister_script( ‘jquery’ );

    in functions.php smile

Don't just sit there, join in!

Commenting is not available in this weblog entry.

Preview