Skip to content

Don't send big data. #99

Description

@jakubmanczak

The way we handle our large datasets is suboptimal.

A no-cache load of tools.debateco.re means some 750 kB, thankfully able to be compressed to only 350 kB of transfer, is sent to the average client when they load the page.

  • The motion.json file is 87kB, and is needlessly sent to the user when they view the menu/landing page.
  • The strings.json file is 13kb, and is included thrice in the bundle for some reason.

A good internet connection isn't bothered by this at all. I get 250ms. However, all it takes is the perspective of a (stable!) 3G connection for it to start taking 4 seconds to load. And it's not like that's unrealistic - debates are held in many places, whether it be convention centres or spiky, concrete, brutalist Faculty of Architecture buildings that don't play nice with connectivity, like the one in Politechnika Poznańska. "Slow 3G" means upwards of ten seconds of loading time.

Out of all the action we could take in order to optimise bundle sizes, this is probably the least drastic one: let's not send unneeded data to the client.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions