How can i solve "net::ERR_CONNECTION_TIMED_OUT"?

algolia-search.js:7 Uncaught ReferenceError: instantsearch is not defined
    at HTMLDocument.<anonymous> (algolia-search.js:7:16)

i don’t know why this happened? What can I do for this problem?
download these two js file to my personal server,and change the script link?

That looks like a download issue retrieving the libraries from the CDN. I’m not sure what would have been causing it, but yes the workaround would be to install the packages locally using npm/yarn and reference the local versions.