JQuery-code on different content pages

Posted by Ockonal on Stack Overflow See other posts from Stack Overflow or by Ockonal
Published on 2009-10-21T18:46:10Z Indexed on 2010/04/21 11:03 UTC
Read the original article Hit count: 137

Filed under:
|
|

Hello, I have a site with menu, which reloads content. Content is dynamically loadable, using ajax and php-script. At different content pages I need in different jquery-plugins. But If I'm writing including need plugin directly in some content page, I get a big lags during loading. So, now I'm includgin all plugins into main page... And it's not the best idea... Any suggestion?


UPD: I have a div with content. Content is shown with effects (rolling up/down). When part of menu is clicked, I'm sending ajax-responce to the php script, which reads need text from database and returns it to the main page, from which I sent the responce. Than I'm pasting that content into a div and roll id down.

So I'll include jquery-plugins in content pages, the animation of rolling will'nt be normal.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about loading