Skip to content
This repository has been archived by the owner on Sep 19, 2018. It is now read-only.

Commit

Permalink
Temporary hide the maps until they're optimized
Browse files Browse the repository at this point in the history
Right now the site is super slow and almost never loads because of the
many events for this year's edition. The map tries to load over 6000
events via JSON and the app returns a 2+ MB JSON file. That's slow to
generate, slow to cache, slow to transfer and slow to process. The
smallish VPS we use can't handle it well.

That's why I'm hiding the map so that at least the other parts of the
site can work. When someone has some time to address the problem, this
commit should be reverted.
  • Loading branch information
mitio committed Oct 12, 2016
1 parent fe65e1b commit 5041a41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions web/templates/pages/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@
{% block messages %}{% endblock %}
{% block content %}
<div class="landing-outter">
<div class="landing-wrapper">
<!-- TODO: Uncomment the map when the loading of many events is optimized. -->
<!-- <div class="landing-wrapper">
<div class="events-map-wrapper">
<div id="events-map">
<img id="loading-gif" src="/static/img/loading.gif">
</div>
</div>
</div>
</div> -->

<div class="container index-content">
<div id="past-events">
Expand Down
5 changes: 3 additions & 2 deletions web/templates/pages/map.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
{% block messages %}{% endblock %}
{% block content %}
<div class="landing-outter">
<div class="landing-wrapper">
<!-- TODO: Uncomment the map when the loading of many events is optimized. -->
<!-- <div class="landing-wrapper">
<div class="events-map-wrapper">
<div id="events-map">
<img id="loading-gif" src="/static/img/loading.gif">
</div>
</div>
</div>
</div> -->

<div class="container index-content">
<div class="clearfix">
Expand Down

0 comments on commit 5041a41

Please sign in to comment.