Code Monkey home page Code Monkey logo

Comments (12)

operatorjen avatar operatorjen commented on July 18, 2024

GIF performance on mobile is pretty chuggy.. I would like to reduce the load of this as much as possible. Setting a default load of 5 messages for now.

from chatspaces.

fwenzel avatar fwenzel commented on July 18, 2024

Should the gifs (all but the last one) be click-to-play? But then we need to generate a still frame as the messages come in.

from chatspaces.

sole avatar sole commented on July 18, 2024

I think we can just "copy" the gif to canvas and it generates always the same still image, so we don't even need to store the static frame apart.

from chatspaces.

operatorjen avatar operatorjen commented on July 18, 2024

I think part of the charm in this kind of chat is that the gif plays right away. Unlike Tumblr, the gifs are part of messages, not blog posts.. so the click to play might interrupt the flow of fast response, fast post. We should talk to Maureen about it and see what she thinks before implementing anything.

from chatspaces.

mhanratty avatar mhanratty commented on July 18, 2024

I agree that the gif should play right away--it will make the app much more fun. Two proposals...

  1. Old school pagination. X number of messages per screen. User keeps moving back in time by clicking link to view previous group of messages.
  2. Load more. Load older messages on same screen but show still images for gifs and have them click to play.

More ideas?

from chatspaces.

operatorjen avatar operatorjen commented on July 18, 2024

I think old school pagination is good for now actually - at least we'll know it works and we can control the load of gifs in memory and not kill the battery too badly :)

from chatspaces.

sole avatar sole commented on July 18, 2024

Heelloo! I'm back from my away-ness.

I actually encountered something similar when doing rtcamera and kind of solved it temporarily setting gifs outside the viewport to not to show. But I reckon a better solution for the user would be to have "infinite scroll" although it technically wouldn't be that but a "window" showing part of the list. This is something we must implement anyway if you want to do things properly for mobile, so I can take a look into it.

For now we should start with old school pagination, and in the future once I write this magic piece of technology we can replace so that scrolling up or down will load/hide the messages automatically.

from chatspaces.

operatorjen avatar operatorjen commented on July 18, 2024

@sole yep that makes sense! old school pagination for now to get it working and then we can go do a phase 2 post mwc

from chatspaces.

sole avatar sole commented on July 18, 2024

sounds good to me, it is a component desperately needed for Brick (as it is two apps that require it already, haha)

from chatspaces.

mhanratty avatar mhanratty commented on July 18, 2024

I like the Twitter bootstrap components for pagination: http://getbootstrap.com/2.3.2/components.html#pagination
• Mobile & Tablet: Show "Older" and "Newer"
• Desktop: Show "<< 1 2 3 4 5 >>"

We could also do some fun copy here. Instead of "Older" "Newer" it could be "Fresh/Vintage" or "Wired/Tired". The world is our oyster.

2013-11-20 16 45 13

from chatspaces.

operatorjen avatar operatorjen commented on July 18, 2024

I can't believe I'm saying this but after hacking on the pagination behaviour, I've realized the prev/next model is incorrect for this format. What we can do a la meatspace is freeze the content above if it is out of the view and load more if you reach the bottom. (I still can't believe I am okay with infinite scroll, kill me now)

from chatspaces.

sole avatar sole commented on July 18, 2024

It's OK to be wrong-it's a sign of wisdom :P

from chatspaces.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.