Syntax
newrelic.finished(time $time_stamp)
Records an additional time point as "finished" in a session trace, and sends the event to New Relic One.
Requirements
Agent version nr-593 or higher.
Description
Records an additional time point when the page is finished according to your custom criteria, either before or after the page load event. This is useful, for example, for pages with many components that load asynchronously.
You can only call this method once per page load, and it does not change the other page load timing data recorded for the load. For an individual page load, this call:
- Adds a
finished
event to the current browser session trace, if one is in progress. - Submits a PageAction event with the name
finished
to New Relic One.
Parameters
Parameter | Description |
---|---|
integer (UNIX time) | Optional. Defaults to the current time of the call. If used, this marks the time that the page is "finished" according to your own criteria. |
Examples
aboveTheFoldContent.on('ready', function () { newrelic.finished()})
その他のヘルプ
さらに支援が必要な場合は、これらのサポートと学習リソースを確認してください:
- Explorers Hubでは、コミュニティからのサポートを受けたり、ディスカッションに参加したりすることができます。
- 当社サイトで答えを見つけて、サポートポータルの使用方法を確認してください。
- Linux、Windows、およびmacOS向けトラブルシューティングツールであるNew Relic Diagnosticsを実行してください。
- New Relicの とandドキュメント をご確認ください。