Jump to content

Any way to use css to return whether dom element is being rendered by GPU?


xtr33me

Recommended Posts

I am workign on a POC right now to determine as to whether or not my iframe is on the page. Now I recently found out that I can have CSS perform transitions using the GPU, but I was curious as to whether or not I can get whether or not my current iframe is beign rendered on the hardware or not. I have not had much luck seeing this is the case, but figured this would be the best place to ask while I am researching. If there is anyway to perform this check using the GPU that you are aware of, please let me know. I do not need to know what is in the iframe, just as to whether or not it is on the screen. In my mind, it seems that the hardware is keeping track of this info so it is aware as to whether or not allocate resources to this view and this is what I am trying to check for. Any direction would be helpful. Thanks!

Link to comment
Share on other sites

That's far closer to the hardware than the browser would allow you to access. You can't know what's going on beyond whatever the browser provides you with.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...