How to load the CSS first in node.js and express?
source link: https://www.codesd.com/item/how-to-load-the-css-first-in-node-js-and-express.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
How to load the CSS first in node.js and express?
I am working in node.js and using ejs for my front end programming. While loading the page, it displays all the content in an unmanaged way but after loading the CSS its show correct layout.
Is there a way to load the CSS first so that the page shows / loads correctly? I heard that there is a way related to async, although I don't know how to use the function properly.
<link href="/public/css/simple-sidebar.css" rel="stylesheet">
in begining of HEAD, and CSS will load before page will render
Related Articles
How to load the css file into JavaFX 2?
How to load the user interface with exhaust shutdowns and asynchronous calls?
Hide the error message in Node.js and Express from POST access
How to use the semantic user interface with React and Express?
How to load the CSS deposited inside the body in JSP?
How to load the div of another web page and not the whole page in my web page?
How to load the sprite sheet with 5 rows and 5 columns top view in Android?
How to create a folder, save a file, and run the java command in the client machine using node.js and express.js
How do I implement virtual directories with node.js and express?
Dynamic link creation by requesting data from the front end in Node.js and Express.js
Twitter bootstrap on Node.js and Express
How can I load and view the contents of the web page asynchronously with Node.js and Express?
How can I test my .NET site on Firefox? It loads in IE but when I open it in Firefox, it does not load the CSS
How to import the css file into UIWebView when I use the loadHTMLString () method in swift (iOS)
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK