Opened on 09/11/2017 at 11:36:06 AM

Closed on 11/10/2017 at 06:38:36 PM

#5652 closed change (invalid)

Refactor handling of eventListeners in help.eyeo.com

Reported by: ire Assignee:
Priority: P3 Milestone: help.eyeo.com 1.0.0
Module: Websites Keywords:
Cc: juliandoucette, saroyanm, greiner Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: no Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

Description

Background

We are currently adding multiple event listeners to each element needed. This is not the best method for performance.

What to change

Research and implement a better method for handling events

Attachments (0)

Change History (7)

comment:2 Changed on 11/09/2017 at 09:35:11 AM by ire

@Julian I don't think this is necessary anymore because:

  1. We are handling all the events in each prototype
  2. I'm not sure it's actually better to handle all clicks/etc. on the body in the first place

What do you think?

comment:3 follow-up: Changed on 11/09/2017 at 02:07:12 PM by juliandoucette

comment:4 in reply to: ↑ 3 Changed on 11/10/2017 at 09:39:53 AM by ire

Replying to juliandoucette:

What do you think?

https://stackoverflow.com/a/28202575

Yeah that's the same link I shared above :P

We are already (IMO) doing what that answer advised. We are handling most event listeners on the parent element, e.g. the .custom-select element and not each <li> within, and determining what to do based on which element within was clicked. The only exception is the navbar, which is being handled in the separate issue to move it to website-defaults.

Do you still feel there is more for us to do? (I think we've agreed that handling the events on the body isn't the way to go here?)

comment:5 follow-up: Changed on 11/10/2017 at 11:48:55 AM by juliandoucette

Yeah that's the same link I shared above :P

I know. I was lazy :P . I could have said "I agree with the answer provided in the first link above" instead.

Do you still feel there is more for us to do?

Not that I remember. If there are individual components that could be optimized then I think that we should create more specific tickets for them.

I think we've agreed that handling the events on the body isn't the way to go here?

Yep.

comment:6 in reply to: ↑ 5 Changed on 11/10/2017 at 06:38:16 PM by ire

Replying to juliandoucette:

Yeah that's the same link I shared above :P

I know. I was lazy :P . I could have said "I agree with the answer provided in the first link above" instead.

Do you still feel there is more for us to do?

Not that I remember. If there are individual components that could be optimized then I think that we should create more specific tickets for them.

I think we've agreed that handling the events on the body isn't the way to go here?

Yep.

Alright. I will close this ticket then, and we can create individual tickets to address individual components if the need arises.

comment:7 Changed on 11/10/2017 at 06:38:36 PM by ire

  • Resolution set to invalid
  • Status changed from new to closed

Add Comment

Modify Ticket

Change Properties
Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none).
 
Note: See TracTickets for help on using tickets.