html - Polymer Components duplicating CSS libraries? -
when building web components polymer if include same external script/css url (think bootstrap) in multiple web components browser make multiple requests same url.
the script/css file cached in browser different using vulcanize concat , inline files , serving 1 file duplication?
e.g.
file 1
<polymer-element name="el-name"> <template> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"> ... </polymer-element>
file 2
<polymer-element name="el-name-again"> <template> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"> ... </polymer-element>
file 3
<link rel="import" href="file1.html"> <link rel="import" href="file2.html">
this make 2 requests bootstrap.min.css
different vulcanizing file 3?
Comments
Post a Comment