dimanche 1 mars 2015

css scope=true link statement

I suppose most are aware that the HTML5 specification has introduced


<style scope="true">


allowing locally scoped style elements that exist outside the page <head> section.


This is a fantastic advance for AJAX delivered content that doesn't update the page header as it can now can include its own "local" styling relevant just to the specific content being delivered.


As one primary purpose of AJAX is to reduce bloat, I would have expected HTML5 to likewise apply the above approach to allow a localised <link> element outside the <head> statement: vis a vis


<link href="somelocalstylefile.css" rel="stylesheet" type="text/css" scope="true">


This localised link statement would provide the same benefits as the localised style statement above, but without the repeated bloat of the contained CSS needing to be delivered with every ajax content redraw.


It seems on the face of it that not providing this ability is a huge oversight in HTML5 but I'm sure there is some good reason for it's exclusion that I'm missing.


So, if anyone could please enlighten me to put my mind at rest I would greatly appreciate it!


thanks


Aucun commentaire:

Enregistrer un commentaire