+ Start a Discussion

Page load check in lightning

I have a requirement in lightning components where I need to check whether a URL is working or not. I am using navigateToURL to navigate to that page but not able to handle the status in my lightning component.
Is there a way in lightning component by which I can check whether a URL is working or not? e.g www.google.com page is up and running or not.
it is not  achievable because due to lockerservice you cant use XMLHttpRequest so you can't check the state of a link
Thanks for the response Ghanshyam. Any workaround for this?