To describe scenario that I want to make:
When user goes to stackoverflow.com the page is loaded fast.
And in the top right corner there are 2 menu items (inbox, achievements).
I have the same looking page.
But as I need more time to load this items that cause that page load slower.
How can I execute JQuery ajax function
to get those data after all data on page are already loaded.
Basicaly: Load whole page > execute jquery and display results when you get them .
$(document).ready(function() { /* Ajax call */ });
或者,如果您希望使用更短的符号,则只需使用:
$(function() { /* Ajax call */ });
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.