• Hello everyone, sorry if I’m posting in the wrong section!

    I’m trying to find a easy way to add Tabs on a WordPress post/page using a plugin, but I’ve tried some and all of them load all the data when you go to the post or page that you’re using the plugin, this makes my website slow.

    What I’m trying to do is something similar do this.

    What’s the easiest way to make something like that?

    Appreciate your help!

Viewing 1 replies (of 1 total)
  • This is a good question for this section.

    What I would do is to have the page loaded from a custom page template, have the page load the row of tabs and the content of the first tab, have the other tabs tied to page links so that your site still works if javascript is disabled. Have the page load a section of javascript which will in background using AJAX load the content of the other tabs in anticipation of them being displayed, the javascript overrides the links in the tabs as initially loaded and manages the DOM in the browser.

    The javascript / jQuery technique you found is the obvious and best way to develop your solution. Suggest that you test and time your pages, it would be possible for the mechanism of your solution to overbalance the benefits that motivated you.

Viewing 1 replies (of 1 total)
  • The topic ‘Tabs that load data?’ is closed to new replies.