Jump to content

Javascript compression in IPB 3.0


Guest ssslippy

Recommended Posts

Compressing JavaScript not only makes the download faster the code can be executed faster on the client side.

The new post page has 11 JavaScript files. That is quite a few JavaScript files. Simple fact is smaller files save bandwidth and execution time.

Note: I did try to search for this topic but it seems the word JavaScript is disabled in searches.

Link to comment
Share on other sites

JS in 3.0 is now compressed on the fly at runtime and cached to the server, which is actually much more efficient than the old way we used to do it. You can enable this option by going into your system settings, and setting 'Use Minify' to On. I'm not sure if it's on by default or not right now, but I believe it will be in Final :)

Link to comment
Share on other sites

It's a relatively new tool I think. :)

If you use our autoloader methods, then yes everything happens automatically. If you include your own JS via a script tag, you need to call minfiy appropriately yourself (just look at how we do it for an example).

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...