Onclick change table shortcode
-
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
The topic ‘Onclick change table shortcode’ is closed to new replies.