use the cached `@$window` instead of `$(window)`