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

Too many JavaScript files on Advanced Editor slows down Vanilla forum sites.

Why will Advanced Editor addon come with many JavaScript files. Too many js files slow down Vanilla forum as reported by Google PageSpeed Insight. Please can someone combine all the JavaScript files into just one? I believe this will speed up Vanilla forum.

http://www.myforum.com/plugins/editor/js/editor.js?v=1.7.2 http://www.myforum.com/plugins/editor/js/jquery.ui.widget.js?v=1.7.2 http://www.myforum.com/plugins/editor/js/jquery.iframe-transport.js?v=1.7.2 http://www.myforum.com/plugins/editor/js/jquery.fileupload.js?v=1.7.2

Tagged:

Comments

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Images and other content are the real cause of slowness… try using the default text box and see if the speed improves…

  • @vrijvlinder - Yes, non-optimized images slows down vanilla forum.
    However, Google specifically mentioned JavaScript files as major cause and advises "Eliminate render-blocking JavaScript files". Obviously "Advanced Editor" has 4 JavaScript files! So combining these JavaScript files into one will definitely improve Vanilla forum speed specially for mobile browsers.

  • @vrijvlinder said:
    Sometimes that is not a good idea but try this

    http://madskristensen.net/post/google-analytics-vs-google-page-speed

    Thank you. I have just implemented the idea. However, this acts only on Google Analytics js. Do you have any idea about other js files especially that of Advanced Editor?

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Maybe this can help same site…

    http://madskristensen.net/post/bundling-minification-and-client-side-compilation

    You tried using the Consolidate plugin ? Don't know of anything else for vanilla. Other people have not complained about this, it may be your own fault.

  • R_JR_J Ex-Fanboy Munich Admin

    @Prosper said:
    I believe this will speed up Vanilla forum.

    Not essentially. The numerous css and js files are a bad habit of Vanilla/something that should be handled by the framework, that's true, but if you want to speed up your installation, there are much more steps to do before you go to this part.

    Server power
    memcached
    APC or OpCache
    Use htaccess to cache assets on the user side

    Then you can think about fine tuning and that would include consolidating css and js. The minify plugin is deprecated but it could still serve as a blueprint.

    River
  • RiverRiver MVP
    edited August 2016

    @R_J said:

    @Prosper said:
    I believe this will speed up Vanilla forum.

    Not essentially. The numerous css and js files are a bad habit of Vanilla/something that should be handled by the framework, that's true, but if you want to speed up your installation, there are much more steps to do before you go to this part.

    Server power
    memcached
    APC or OpCache
    Use htaccess to cache assets on the user side

    yes, improve the underlying host, and streamline and remove time hogs on your forum as well which probably consume more time in 10s to 100s in terms of magnitude vs. a few milliseconds you might save combining the js.

    Pragmatism is all I have to offer. Avoiding the sidelines and providing centerline pro-tips.

    vrijvlinderBleistivt
Sign In or Register to comment.