Answer the question
In order to leave comments, you need to log in
How to not load base.js for every iframe?
I have a block where, in silent mode, 3-4 videos from YouTube are played simultaneously. I noticed that the page started to weigh too much and found that each YouTube iframe loads its own base.js libraries separately - how to avoid this?
In Google, I found only methods with image substitution - but they do not suit me, since the video starts playing right after the block becomes active
Answer the question
In order to leave comments, you need to log in
No way. Each iframe is a separate page, with its own independent memory. Due to security and multithreading, the browser does not even fumble the same thing.
In theory, of course, it would be possible to make a "main page" and throw functions into frames, but in practice with someone else's bold code this is unrealistic.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question