How popular was basketball when it was first invented?

It started as just an indoor sport for the students at Springfield High School.

When it became a professional sport it was the most popular sport at the time.