Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 15:31

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Lädt ein Video auch dann noch, wenn display = none?

Discussion on Lädt ein Video auch dann noch, wenn display = none? within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1



 
Looneytune's Avatar
 
elite*gold: 70
The Black Market: 376/0/0
Join Date: Mar 2007
Posts: 24,343
Received Thanks: 12,384
Question Lädt ein Video auch dann noch, wenn display = none?

Hallo,

wenn ich ein Video über display: none rein optisch entferne, frage ich mich, ob das Video trotzdem noch beim Besucher geladen wird, nur eben unsichtbar?

Gruß
Looneytune is offline  
Old 09/17/2015, 07:17   #2
 
Mikesch01's Avatar
 
elite*gold: 203
Join Date: Sep 2007
Posts: 732
Received Thanks: 190
Ja wird es trotzdem. Dies ist nur eine optische Änderung.
Mikesch01 is offline  
Thanks
1 User
Old 09/21/2015, 20:36   #3
 
RecK's Avatar
 
elite*gold: 20
Join Date: Jan 2009
Posts: 304
Received Thanks: 55
Um es etwas ausführlicher zu machen:

display: none entfernt das Element optisch von der Seite (es ist aber immer noch als HTML definiert).
In diesem Element verweist du auf das Video. Also unabhängig von der Darstellungsweise des Elements wird das verwiesene Video geladen.

Wenn du das Video also nicht laden möchtest, musst es erst bei Bedarf nach laden.
Andernfalls kannst du auch einfach das HTML Element erst später per JavaScript einbinden.
RecK is offline  
Thanks
1 User
Old 09/22/2015, 02:43   #4
 
MrDami123's Avatar
 
elite*gold: 56
Join Date: Oct 2010
Posts: 3,409
Received Thanks: 1,219
Um nicht von jeder Seite mit endlichen unsichtbaren Elementen bombardiert zu werden sollte man mindestens einen JS Blocker verwenden.
MrDami123 is offline  
Reply


Similar Threads Similar Threads
Wenn ich die texte in filezilla geändert habe muss ich die dann auch im client ändern
01/08/2011 - Metin2 Private Server - 7 Replies
überschrift sagt alles.



All times are GMT +2. The time now is 15:31.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.