Skip to content

Commit

Permalink
[load-time-optimization] improve expand-moves
Browse files Browse the repository at this point in the history
We did not use “solver” which loaded YUI/etc.

Also see https://www.shlomifish.org/meta/FAQ/site_loads_quickly.xhtml
  • Loading branch information
shlomif committed Jun 14, 2024
1 parent d186bd6 commit 4018948
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fc-solve/site/wml/src/js-fc-solve/expand-moves/index.html.tt2
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[% END %]

[% BLOCK page_extra_head_elements %]
[% INCLUDE insert__page_extra_head_elements__macro skip_solitairey = 1 , skip_yui = "" , %]
[% INCLUDE insert__page_extra_head_elements__macro skip_solitairey = 1 , skip_yui = 1 , %]
[% END %]

[% BLOCK gen_desc %]
Expand All @@ -22,20 +22,20 @@ card solitaire game, and <a href="#other_games">several related solitaire games<
[% INCLUDE emscripten_common__header subject=subject , %]
<script>
[% INCLUDE set_up_requirejs %]
require(['./solver-freecell'], function (solver) {
{
[% incs %] {
[% IF enable_jquery_ui %]
[% INCLUDE set_up_tabs %]
[% END %]
window.my_web_fc_solve_ui = expand_moves_ui;
expand_moves_ui.set_up(module_wrapper, solver);
expand_moves_ui.set_up(module_wrapper);
[% IF enable_jquery_ui %]
$( "#output_tabs" ).tabs();
[% END %]
[% suffix %]
});
});
});
}
</script>

[% END %]
Expand Down

0 comments on commit 4018948

Please sign in to comment.