Concerning this flow logic from here Chrome Extension how to send data from content script to popup.html
A content script is injected into each page matching some criteria.
Once injected, the content scripts send a message to the event page (non-persistent background page) and the event page attaches a page=action to the tab.
As soon as the page-action popup is loaded, it sends a message to the content script, asking for the info it needs.
The content script processes the request, and responds so the page-action popup can display the info.
I suspect there will be a delay if the popup.js is triggered, because my ajax call is in content scripts. How to ensure there is no delay in using ajax in chrome extension?