Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

atul22481's avatar

API is slow when open website page by using domain and fast when open using IP address

Hello, I have developed one website page in ReactJs in which some APIs are calling an API implemented in Lravel. I am using ReactJS 16.2.0 and Laravel 9.32.0.

When I open this page by using a domain like https://example.com/dashboard, it takes lots of time to load the API but when I open the same page through the IP address https://x.x.x.x/dashboard, it loads all API response faster.

Thanks.

0 likes
0 replies

Please or to participate in this conversation.