Nav Logo
Build with us
Docs
Blog
Resources
Developer centers
Login
JavaScript
JavaScript
Facebook SDK for JavaScript
Quickstart
Advanced Setup
Advanced Setup
Localization
Examples
Frameworks
Frameworks
AngularJS
jQuery
RequireJS
Reference
Reference
Initialization
Graph API
Dialogs
Dialogs
Login Status
Login
Logout
Auth Response
Event Subscription
Cancel Subscription
XFBML Parsing
Resource Prefetching
Prefetching Mode
Page Info
Hide Flash Element
Loading Control
Show Flash Element
Scroll Control
Canvas Resizing
Manual Canvas Resizing
URL Handler
Start Loading Timer
Stop Loading Timer
Docs
Overview
Measuring Loading Time

Measuring Loading Time

Updated: Mar 1, 2018
Copy for LLM
View as Markdown
To be used in conjunction with setDoneLoading . Call startTimer to resume the timer after a period of time for the page load that you didn't wish to measure, which you began by calling stopTimer.
Later, call setDoneLoading when the page load is complete.

Example

FB.Canvas.startTimer();


Meta
FacebookInstagramXLinkedInYouTube
Build with Meta
AIMeta Horizon Social technologiesWearables

News
Meta for DevelopersBlogSuccess stories

Support
Developer SupportBug toolPlatform statusDeveloper community forumReport an incident

Terms and policies
Responsible platform initiativesPlatform termsDeveloper policiesPrivacy policyCookies

About us
AboutCareers

Build with Meta
AI
Meta Horizon
Social technologies
Wearables
News
Meta for Developers
Blog
Success stories
Support
Developer Support
Bug tool
Platform status
Developer community forum
Report an incident
About us
About
Careers
Terms and policies
Responsible platform initiatives
Platform terms
Developer policies
Privacy policy
Cookies
Build with Meta
AI
Meta Horizon
Social technologies
Wearables
News
Meta for Developers
Blog
Success stories
Support
Developer Support
Bug tool
Platform status
Developer community forum
Report an incident
About us
About
Careers
Terms and policies
Responsible platform initiatives
Platform terms
Developer policies
Privacy policy
Cookies
Build with Meta
AI
Meta Horizon
Social technologies
Wearables
News
Meta for Developers
Blog
Success stories
Support
Developer Support
Bug tool
Platform status
Developer community forum
Report an incident
About us
About
Careers
Terms and policies
Responsible platform initiatives
Platform terms
Developer policies
Privacy policy
Cookies
English (US)