Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Delayed CSS and JS loading (on demand)

edited March 2011 in Vanilla 2.0 - 2.8
Any plans to use http://code.google.com/p/rloader/ to sometimes optimize loading of JS and CSS?
Especially if they only required for popup windows or forms.

Comments

  • Also bump, as idea is quite good because Vanilla really have some code used only in popup forms.
    It can also be applied to reply field. Making it Write Reply link -> Userc lcick ob it ->Ajax enabling input field and loading CSS and scripts without page reloading. So, reducing load on server, because 95% of people just view topics and do not write any replies.
  • aeryaery ✭✭✭
    rloader is really looking useful. @mark, and other vanilla team, please look into this.

    There was an error rendering this rich post.

  • Actually the shift in the industry is towards AMD (Asynchronous Module Definition) You can check out the RequireJS project: http://requirejs.org/

    It can be used with dojo (1.6beta2) and jquery. It has plugins for text that could be used to handle css or additional layout, etc...

    There's also an effort to create a standardized interface for a resource combiner service.

    There was an error rendering this rich post.

  • @ddumont - it is interesting, but looks like slight overkill for us. Or I am wrong here?

    As all we need is small and simple internal handler that load other code and CSS.
    Such approach allow us to improve Vanilla interface, without sacrificing performance.
    For, example, we could combine several jQuery plugins and use jQuery.UI more heavily.
  • SS ✭✭
    Tiny lazyload js/css.
    https://github.com/rgrove/lazyload
Sign In or Register to comment.