I'll css file as a binary stream into the database
goal is to read the corresponding css style dynamically on the page after the realization of selected from the database according to the selected id to control reality.
There is a doubt that the current process is the realization of my time from the database to create a style.css file is read in the project, and then the page JS introduced .
this question is read once every css style.css file to be re- covered .
student forum dog would like to ask you, I'm such a process is that correct? Is there a more convenient way ?
------ Solution ---------------------------------------- ----
this is feasible , but in the head inside css files should be added when the page is loaded before speaking writes
------ For reference only ----------- ----------------------------
bother to ask , what is written before the page loads ?
I will affect the efficiency of this method page load it? Is there a more reasonable method ?
------ For reference only -------------------------------------- -
bother to ask , what is written before the page loads ?
I will affect the efficiency of this method page load it? Is there a more reasonable method ?
efficiency is reflected in the response speed of your server , why speak before the page is loaded inside css wrote dom dom are loaded is good because if you go to add new css, then add this new css will not go rendering understand yet?
------ For reference only -------------------------------------- -
bother to ask , what is written before the page loads ?
I will affect the efficiency of this method page load it? Is there a more reasonable method ?
efficiency is reflected in the response speed of your server , why speak before the page is loaded inside css wrote dom dom are loaded is good because if you go to add new css, then add this new css will not go rendering understand yet?
If it another way , is to exist css file server, database storage path , so loading is more reasonable ? ?
------ For reference only -------------------------------------- -
bother to ask , what is written before the page loads ?
I will affect the efficiency of this method page load it? Is there a more reasonable method ?
efficiency is reflected in the response speed of your server , why speak before the page is loaded inside css wrote dom dom are loaded is good because if you go to add new css, then add this new css will not go rendering understand yet?
If it another way , is to exist css file server, database storage path , so loading is more reasonable ? ?
I think this is a better solution , and why, because every time you load a css file, if you read from the database , the first representing the connection you have created this second css files and some other unknown trouble.
------ For reference only -------------------------------------- -
bother to ask , what is written before the page loads ?
I will affect the efficiency of this method page load it? Is there a more reasonable method ?
efficiency is reflected in the response speed of your server , why speak before the page is loaded inside css wrote dom dom are loaded is good because if you go to add new css, then add this new css will not go rendering understand yet?
If it another way , is to exist css file server, database storage path , so loading is more reasonable ? ?
I think this is a better solution , and why, because every time you load a css file, if you read from the database , the first representing the connection you have created this second css files and some other unknown trouble.
Thank you !
没有评论:
发表评论