projects
/
MojoFacets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24359c5
)
don't even send javascript
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 24 May 2010 19:38:51 +0000
(21:38 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 24 May 2010 19:38:51 +0000
(21:38 +0200)
This allows us to cut down 15s display time (with more than 45000
values) down to 6.7s (from 10 while we where sending javascript
on bottom of page).
templates/data/facet.html.ep
patch
|
blob
|
history
diff --git
a/templates/data/facet.html.ep
b/templates/data/facet.html.ep
index
5c907e0
..
ffa7dd5
100644
(file)
--- a/
templates/data/facet.html.ep
+++ b/
templates/data/facet.html.ep
@@
-39,7
+39,9
@@
</form>
+% if ( $#$facet_names < 5000 ) {
<script type="text/javascript" src="/facet_graph.js"></script>
+% }
% if ( $#$facet_names < 100 ) {
<pre class=debug><%#= dumper $facet %></pre>