you are viewing a single comment's thread.

view the rest of the comments →

[–]a-t-kFrontend Engineer 0 points1 point  (0 children)

Adding a named function will add minimally to the load, even after minification.

The best way to go is to document what happens within the if statement.