Bug Tracker

Opened 10 years ago

Closed 10 years ago

#11059 closed enhancement (wontfix)

hide(0) / show(0) extremely slow

Reported by: [email protected] Owned by: Rick Waldron
Priority: low Milestone: 1.next
Component: effects Version: 1.6.4
Keywords: Cc:
Blocked by: Blocking:

Description

It's clear, that hide and show do different stuff than just setting css-properties (i.e. display: none / block).

Still, there should be no animation-calculation and performance-leaking stuff when using these functions with a speed of 0

Change History (3)

comment:1 Changed 10 years ago by sindresorhus

Owner: set to [email protected]
Status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.

comment:2 Changed 10 years ago by Rick Waldron

Component: unfiledeffects
Milestone: None1.next
Owner: changed from [email protected] to Rick Waldron
Priority: undecidedlow
Status: pendingassigned

It's clear that you're unaware of varied display states - there is no simple "display: none / block". That being said, it should be easy enough to skip the animation path if the values are 0

comment:3 Changed 10 years ago by Rick Waldron

Resolution: wontfix
Status: assignedclosed

I take that back. This case is intended and has supporting tests.

Note: See TracTickets for help on using tickets.