Mobile app version of vmapp.org
Login or Join
Megan663

: Duplicate CSS files in Firefox Inspector I'm wondering that why Inspector shows duplicate CSS as follows: What is the difference between Cause column: stylesheet vs JS stylesheet? UPDATE: Here

@Megan663

Posted in: #Css #Development #Firefox #Tools #WebDevelopment

I'm wondering that why Inspector shows duplicate CSS as follows:


What is the difference between Cause column: stylesheet vs JS stylesheet?

UPDATE:
Here some explanation. Seems like my css is actually included twice if js request for it too?
developer.mozilla.org/en-US/docs/Tools/Network_Monitor#Cause_column
UPDATE:



Now there's even more - 4x same css.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Megan663

1 Comments

Sorted by latest first Latest Oldest Best

 

@Bethany197

Yes, it appears as though you may be linked to the CSS through a page that is also linked to another file (JS?) that is also linked to that same CSS. I can't be certain, but that's what it looks like. My guess is that if you comment out the CSS linkage in the JS file, your site will operate the same as before, but without loading the CSS more than once. Where that may fall apart is if you have the JS file being used, elsewhere...where the CSS hasn't yet been called.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme