• Resolved rwboyer

    (@rwboyer)


    I have a theme that tablepress and only tablepress seems to be breaking.

    The theme uses…

    `wp_deregister_script( ‘jquery’ );

    EVERY other plugin including a ton of woocommerce and other plugins seem to respect this and do not load the default version of jquery as they usually would and everything works just fine UNLESS tablepress is used on any page or post in which case it appears that for whatever reason tablepress causes the load of a second copy of jquery after everything else is already using that first version which breaks EVERYTHING else but tablepress.

    Would love some assistance in figure out how to fix this quickly as tablepress (as everything else is required to make this work).

    Thanks

    RB

    https://www.ads-software.com/plugins/tablepress/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    The solution here is to not deregister the jQuery that comes with WordPress. This is very bad practice. (According to the WP Theme Directory rules, the theme would no longer be accepted in the repository while doing this!)

    If you really must replace jQuery with a different version (there’s really no need to!) you should use a plugin like jQuery Update maybe, which does it the proper way.
    The important thing is to deregister/re-enqueue on the jquery-core script handle.

    Regards,
    Tobias

    Thread Starter rwboyer

    (@rwboyer)

    thanks,

    problem sorted but still curious why nothing else re-loads jquery but tablepress?

    RB

    Thread Starter rwboyer

    (@rwboyer)

    IE… I am assuming everything else depends on ‘jquery’ and tablepress depends on ‘jquery-core’ or something along those lines??

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    correct, TablePress directly uses jquery-core as its code has been tested and coded so that it does no longer require the jquery-migrate script (which by design should only be used for a short period of time while migrating old code into new code).
    With that, TablePress helps to reduce the loading time on all those sites where no other plugin or theme is using the jquery handle.

    Regards,
    Tobias

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘jQuery loading problem’ is closed to new replies.