JangoSteve / jQuery-EasyTabs

Easy and flexible jQuery tabbed functionality without all the styling.
http://www.alfajango.com/blog/jquery-easytabs-plugin/
549 stars 203 forks source link

Lazy load? #204

Open beachmat opened 9 years ago

beachmat commented 9 years ago

I was wondering if it's possible to have Easytabs lazy-load the contents of the non-default tabs on page load? Or does it do that anyway?

ahendri commented 9 years ago

The default case is lazy loading

beachmat commented 9 years ago

Ok thanks. Presumably Easytabs would need to load in the head for that (which somewhat negates the benefit of lazy load, but anyway).

ahendri commented 9 years ago

I do not see why you would have to put the script in the head. You can still use a script at the bottom of the page. Easytabs will load the first active tab if it has an href indicating ajax loading. If you fail to do so please post an example.

beachmat commented 9 years ago

If Easytabs loads at the bottom of the page, won't the rest of the page have already loaded?

ahendri commented 9 years ago

It is considered best practice to load javascript late. Do you have a specific problem? Please specify what your concerns are.