mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-21 23:33:54 -04:00
Add a @todo to defer loading the script/css to the organize dialog.
This commit is contained in:
@@ -21,6 +21,10 @@ class organize_theme {
|
||||
static function head($theme) {
|
||||
$item = $theme->item();
|
||||
if ($item && access::can("edit", $item) && $item->is_album()) {
|
||||
// @todo: Defer loading js/css until we're loading the organize dialog as <script> and
|
||||
// <link> elements so that we're not forcing them to be downloaded on every page view (which
|
||||
// is expensive in terms of browser latency). When we do that, we'll have to figure out an
|
||||
// approach that lets us continue to use the Kohana cascading filesystem.
|
||||
$theme->script("organize.js");
|
||||
$theme->css("organize.css");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user