What does gapi_processed mean?

Recently, I noticed the gapi_processed attribute for a large number of script tags, but I can not find any good documentation on it.

What does this mean and where can I find out more about it?

 <script gapi_processed="true" src="..."></script> 

EDIT
Here are some examples (check the script tags in <head> on the first two)

Looks like this could be relevant to Google?

+6
source share
1 answer

If you download the Javascript Google client by creating a script tag:

 var script = document.createElement('script'); script.src = 'https://apis.google.com/js/client.js' document.body.appendChild(script); 

it loads javascript, but it does not become available as a global window object immediately. "gapi_processed" is true when window.gapi is a populated object.

for script tags created in HTML markup, if you browse the sources using Chrome tools, you will notice that the attribute is highlighted as modified.

+2
source

Source: https://habr.com/ru/post/957783/


All Articles