Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Eric
    @tamfr
    Your code works great, got it deployed on each team member's page: http://osteoengineering.com/team. Any ideas how to make the images load faster though?
    Daniel Li
    @d4nyll
    Let me look into it and I'll reply you when I have something!
    Daniel Li
    @d4nyll
    Yes I can do that. There are a 'low_resolution' (306px), 'thumbnail' (150px), and 'standard_resolution' (640px) versions for images, and 'low_bandwidth' (480px), 'standard_resolution' (640px) and 'low_resolution' (480px) versions for videos. It would be a good idea to add an option for the caller to specify which resolution to fetch.
    You can refer to d4nyll/instafetch#4
    In your case, all images are returning at standard resolution (640px), which is why it's slow. Thank you for your suggestion!
    Eric
    @tamfr
    Great! Thanks for the insight. I'll give the low res specifier a try.
    Daniel Li
    @d4nyll
    Give me a few days to implement this, it's Chinese New Year over here! >_<
    Or if you want, I would be totally OK! to accept a PR! :p
    Eric
    @tamfr
    Gong Hei Fat Choi!
    Haha, I'll see what I can do
    Daniel Li
    @d4nyll
    恭喜發財!
    Daniel Li
    @d4nyll
    Hey Eric, have you got it to work yet? Actually, it's much simpler than I thought... Go to 'https://github.com/d4nyll/instafetch/blob/master/examples/example.js'
    Where it says standard_resolution
    change that to thumbnail and you should be good to go
    @tamfr
    I'll make it easier to use in the long run, but I have other more urgent projects going on!
    Have a good day!
    Eric
    @tamfr
    Thanks for the suggestion, but in my callback, I have that line commented out as I am only using lines 67 and 68 to pull the image which is the "low resolution" versions. I suppose I can try thumbnail there and see if it goes faster.
    Eric
    @tamfr
    so didn't help the speed issue, but see my comment https://github.com/d4nyll/instafetch/issues/5#issuecomment-75597141