Closed Bug 984892 Opened 12 years ago Closed 12 years ago

Lazy load library does not cache fragments

Categories

(Firefox OS Graveyard :: Gaia, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: crdlc, Assigned: crdlc)

Details

Attachments

(1 file)

I think that this is not the correct and expected behavior but if it should work so, then I will close the bug
Assignee: nobody → crdlc
Status: NEW → ASSIGNED
Attached file Patch v1
Thanks guys
Attachment #8392867 - Flags: review?(jmcf)
Attachment #8392867 - Flags: review?(21)
Attachment #8392867 - Flags: review?(jmcf) → review?(kgrandon)
Comment on attachment 8392867 [details] Patch v1 Let's ask Kevin as he wrote this file.
Attachment #8392867 - Flags: review?(21) → review?(kgrandon)
Attachment #8392867 - Flags: review?(kgrandon)
Comment on attachment 8392867 [details] Patch v1 Was this causing a bug or anything? I guess I'm not sure if caching is the right terminology here as we would just be saving an empty iteration over the child nodelist. This is possibly a performance win, so R+ from me.
Attachment #8392867 - Flags: review?(kgrandon) → review+
I haven't seen any bug but I realized that each time that I added a fragment to DOM there was a reflow and I thought "but if this fragment was already rendered" and I started looking into the lazy load lib and I saw that fragments are indexed by id but recovered by node. If you are comfortable we can land on master.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: