プロジェクト

全般

プロフィール

Vote #63015

未完了

Remove unneeded .js files to speed page load

Admin Redmine さんが約4年前に追加.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
-
対象バージョン:
-
開始日:
2008/04/09
期日:
進捗率:

0%

予定工数:
category_id:
0
version_id:
0
issue_org_id:
1024
author_id:
583
assigned_to_id:
0
comments:
2
status_id:
1
tracker_id:
2
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

I'm finding the load of the first page by a user is very slow over medium speed links. I think this is simply due to the fact that base.rhtml includes 5 javascript files, which are 172KB in size.

I wonder if any of these could be disabled? For example, is there any drag-and-drop in redmine?

If they're all needed, perhaps they can be all "cat"ed together to improve performance? I've done this with the .css files already to good benefit.

BTW, see for example

http://infovore.org/archives/2006/07/11/javascript_include_tag-defaults-considered-harmful/

which came up in my quest to understand how rails deals with javascript_include_tag.

Thanks


journals

+1 for the potential performance benefit. We don't even get to cache the javascripts, even going through a caching proxy, because Rails deliberately prevents it by appending a timestamp to the filenames. We could omit js includes from layouts/base altogether and make use of <%= yield :header_tags %> to allow each view to specify which .js files it needs.
--------------------------------------------------------------------------------
Has this thing already be reviewed?

In the past 4 years there some been many commits. This should be checked, maybe a Modernizr implementation would be helpful to help the migration to HTML5 and CSS3. This way, there could be some lazy loading JS implementation. Just as an idea.
--------------------------------------------------------------------------------

表示するデータがありません

他の形式にエクスポート: Atom PDF

いいね!0