When Should I Stop Feeding My Cat Kitten Food?

My kitten was about 8 weeks old and we noticed he had a slight limp. He was ok at the time but now his leg is much worse and it’s swollen up. How long should I wait to see if there is any improvement? Should I try to take him to the vet or does anybody know for sure how long it takes before an injury like this heals? Thank you!