• Resolved Dee Lete

    (@dee-lete)


    I have a TablePress table for each state (50+ tables) i have a state index tab with all states on one page – when tab is clicked the table changes to the appropriate table. I have completed this with JS (display: none; for tables not showing), but the tables actually load on the page when doing a page load test (GTMetrix) which increases the page load time.

    Would using ajax to “onlcick” change TablePress shortcode on the page so the table is only called when chosen be a solution to this issue? If yes, can some please help with code or is there a plugin?

    I did/do not want to create 50+ pages – Is there another option? Please help

    DEE

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Yes, AJAX would be a nice approach here, but unfortunately, there’s no readily available solution for this, sorry 🙁

    Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Onclick change table shortcode’ is closed to new replies.