Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 21 15:43
    denazebiz starred canjs/canjs
  • Jun 17 00:44
    boticello starred canjs/canjs
  • Jun 15 16:39
  • Jun 07 16:47
    justinbmeyer assigned #5517
  • Jun 07 16:44
    bmomberger-bitovi labeled #5517
  • Jun 07 16:44
    bmomberger-bitovi opened #5517
  • Jun 07 16:44
    bmomberger-bitovi labeled #5517
  • Jun 07 16:44
    bmomberger-bitovi labeled #5517
  • Jun 07 11:52
    maxloh starred canjs/canjs
  • Jun 04 04:31
    MarymagdalenaX86 starred canjs/canjs
  • Jun 03 05:09
    JonReppDirectOneDesign starred canjs/canjs
  • May 20 21:13
    justinbmeyer opened #5516
  • May 19 10:38
    Heartnett starred canjs/canjs
  • May 14 20:56
    leodutra starred canjs/canjs
  • May 11 09:07
    frank-dspeed edited #5515
  • May 11 09:05
    frank-dspeed edited #5515
  • May 11 09:01
    frank-dspeed edited #5515
  • May 11 08:52
    frank-dspeed opened #5515
  • May 07 12:16
    eddyralston starred canjs/canjs
  • May 03 20:07
    Jakedalus starred canjs/canjs
Christopher Oliphant
@RALifeCoach
All my data is in the viewModel, not in the outer scope
I haven’t tried ./ and I must confess I am not sure what that means
I don’t recall seeing that in the docs
Christopher Oliphant
@RALifeCoach
@pYr0x can you please point to the docs for ./
Jeroen Cornelissen
@jeroencornelissen
Christopher Oliphant
@RALifeCoach
Thanks
Kevin Phillips
@phillipskevin
@RALifeCoach one thing I would test is how much of the DOM is being updated when you make a change
Christopher Oliphant
@RALifeCoach
sure
Kevin Phillips
@phillipskevin
you can turn on paint rectangles in chrome dev tools
Christopher Oliphant
@RALifeCoach
how do you want to do that?
then when you change something, the piece of the DOM that was updated should flash green
Christopher Oliphant
@RALifeCoach
I am not seeing any of it flash green during load or reload
Kevin Phillips
@phillipskevin
ok, when you say “updating is taking a while” what do you mean exactly?
Christopher Oliphant
@RALifeCoach
var stache1 = new Date().getTime();
                this.playerRowMap.attr({'player': request.player});
var stache2 = new Date().getTime();
pgatour.stacheTime += stache2 - stache1;
at the end of 156 updates the total accumulated time is 1.8 seconds
Kevin Phillips
@phillipskevin
but that’s not noticeable by the user?
Christopher Oliphant
@RALifeCoach
I notice it
Kevin Phillips
@phillipskevin
how?
Christopher Oliphant
@RALifeCoach
and I am on a high end MAC Pro
I haven’t tried it on my phone yet
I can see the delay
2 seconds is a noticeable delay
Kevin Phillips
@phillipskevin
so… you click a button and expect new data to be shown, but it takes time
Christopher Oliphant
@RALifeCoach
that’s right
Kevin Phillips
@phillipskevin
but during that time, the browser isn’t locked… you can scroll, or click other things
Christopher Oliphant
@RALifeCoach
and it is a conversion of existing code that uses jQuery tmpl - that time to reload was .4 seconds
and if I write code to strip down my player object from hundreds of properties to the 30 or so I need, I get close to the .4 second reload time
Kevin Phillips
@phillipskevin
ok, yeah, I’ve been reading some of the earlier conversation
Christopher Oliphant
@RALifeCoach
I have used type: ‘*’ and parseModel - both gave the same improvement - down from 6 seconds to reload
Kevin Phillips
@phillipskevin
so I’m still a little confused
when you notice the delay, what are you expecting to change?
Christopher Oliphant
@RALifeCoach
nothing
Kevin Phillips
@phillipskevin
so… you click a button and expect new data to be shown, but it takes time
Christopher Oliphant
@RALifeCoach
It is actually a very long and complicated page load - the data is loaded once and then reloaded with more details
Kevin Phillips
@phillipskevin
ok
so you’re expecting the entire screen to change?
Christopher Oliphant
@RALifeCoach
I have added the timing code to find out why those two steps were taking so long
I can’t do anything to reduce the initial load
That’s why I am now focusing on the reload
Kevin Phillips
@phillipskevin
sure
Christopher Oliphant
@RALifeCoach
Justin suggested lazy map and I was seeing timings where I wanted them to be
But lazy map is broken with more complex data
I was really hoping someone would fix lazy map
Kevin Phillips
@phillipskevin
is there an open issue?
Christopher Oliphant
@RALifeCoach
yes
Kevin Phillips
@phillipskevin
about LazyMap I mean
Christopher Oliphant
@RALifeCoach
canjs/can-map-lazy#1
Kevin Phillips
@phillipskevin
thanks
Christopher Oliphant
@RALifeCoach
Do you have any new suggestions? Can you schedule a fix to lazy map?
Kevin Phillips
@phillipskevin
if it’s not a DOM update that is causing the problem (which you ruled out using paint flashes) I don’t have any new suggestions right now