Support » Plugin: TablePress » load CSS only in interested page

  • Resolved Andrés Cifuentes

    (@andrescifuentesr)



    Hi tobias,

    First at all, Thanks for this amazing plugin, it is the first time that I try it but so far it’s pretty amazing and really user friendly.
    I would like to know if there is a method to load plugin’s css and js only in the page concerned and not everywhere.

    Thanks

    Andres

    https://wordpress.org/plugins/tablepress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The JavaScript, as it’s loaded in the footer of the page, is only loaded on pages where that’s really necessary.
    However, due to the way how CSS needs to be loaded in a page, this is not directly possible for the CSS files. There is however a way to achieve this with some custom code. Please see this thread for more background information on this topic and ideas for such code:
    http://wordpress.org/support/topic/conditionally-load-tablepress-stylesheets

    Regards,
    Tobias

    Andrés Cifuentes

    (@andrescifuentesr)

    Hi Tobias,

    Thanks for your quickly reply. You are absolutely right about JS.
    I think I’m going to stress a bit more the plugin to decide if I charge my own CSS or I just sacrify one more Http request.

    but thanks for a great job

    Cheers
    Andrés

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘load CSS only in interested page’ is closed to new replies.