It’s sort of been ‘against my religion’ to poll a condition using a timeOut or similar technique. I’d so much rather handle an event than continuously search for evidence that an event occurred.
But, due to spotty support for the onHashChange event, it was suggested I use a plugin that polls the window.location property every 50ms.
Are there any real risks to doing this (eg processing expense)? Or am I just superstitious?
Since it is a common practice to poll the
window.locationproperty, I believe there is no real risk involved. When I needed to implement it, I found out that such polling is used in Google’s gmail and “translate”.