Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy load? #204

Open
beachmat opened this issue Nov 26, 2014 · 5 comments
Open

Lazy load? #204

beachmat opened this issue Nov 26, 2014 · 5 comments

Comments

@beachmat
Copy link

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
Copy link
Contributor

ahendri commented Nov 26, 2014

The default case is lazy loading

@beachmat
Copy link
Author

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

@ahendri
Copy link
Contributor

ahendri commented Nov 27, 2014

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
Copy link
Author

beachmat commented Dec 1, 2014

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

@ahendri
Copy link
Contributor

ahendri commented Dec 3, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants