i.e. on a page, I see that after i.e. 5 seconds of page load, there appears a message:

Hello Akubatula, you are wonderful.

Lets say, i want to find out, from where does the word wonderful comes from. It is not in source, I can't find it in sources ( Inspect>Sources>CTRL+SHIFT+S)...

How can i find from which script/event it is loaded? I know a bit about breakpoints, but i was unable to find that moment/script, which triggers that event. Is that possible to breakpoint or search by that string?


Sounds like it could be data coming from the server via an AJAX call, where they perhaps have a service that fetches a message (at random?) from within an array of messages like that. If it is, then assuming you're in Chrome:

  1. Click the Network tab.
  2. Click the XHR button. If you do not see it, then you'll need to click the Filter icon first.
  3. Make sure the Record icon is on (red).
  4. Refresh the page and then wait for that message to appear on the page. If it doesn't, then if you don't mind logging back in and everything, you may need to click the Application tab, then Clear storage, then the Clear site data button (which will effectively make it as though you're visiting the site for the very first time from your device/browser, though this won't do much if they remotely track that behavior).
  5. Just before, you should have seen new activity in your Network window.
  6. If so, click on the XHR names of interest, then in the right-hand pane (of which you may need to stretch DevTools out farther to see), look in the Preview and/or Response tabs and see if you see your text there, perhaps as a JSON key/value pair (i.e., {"msg":"Here is your message"}).
  7. If so, then you can click the Headers tab to get more information on the API call, then go about looking for information related to the data therein, residing in the client-side source files.
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.