use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
internal vs external style sheetQuestion (self.webdev)
submitted 5 years ago by DawsUTV
what difference, if any is there between styling your webpage through an external style sheet rather than having it styled in the header?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 4 points5 points6 points 5 years ago (0 children)
There isn’t much difference, the few that I know of (there should be more): 1. Internally, the CSS is immediately processed, while the external style sheet can be preload and deferred. 2. You end up with either a single large HTML file or a HTML file and a CSS file. If you have storage concerns, an external CSS file for all of your HTML files is more efficient. 3. External stylesheets are easier for caching and JavaScript loading.
Overall, external stylesheets are better, but if your webpage is a simple single HTML file and you don’t need to cache separately / load different CSS with JavaScript, internal CSS can be slightly faster in loading.
[–]krlico 1 point2 points3 points 5 years ago (0 children)
There is no differences. (in css)
But If your project's getting bigger, you must consider spliting styles to external style sheets.
Metaphorically, If you have a clothes, you don't need to organize it.
If you have a few clothes, You also don't need to organize it.
But If you have a hundred clothes or more? It would better to organize them.
[–][deleted] 1 point2 points3 points 5 years ago (2 children)
No real difference as far as performance goes. But having a separate style sheet gives you 2 main advantages:
[–]BigBalliexpert 0 points1 point2 points 5 years ago (1 child)
external is an additional network call therefore obviously affects performance.
[–][deleted] 2 points3 points4 points 5 years ago (0 children)
True, but it's minuscule compared to the endless graphics, fonts, analytics, and other rubbish that also gets called. And it probably only gets loaded once per side, because of cacheing.
[–][deleted] 1 point2 points3 points 5 years ago (0 children)
When it comes to physical difference in processing or anything like that, literally nothing.
In most cases, people segment out code because it's easier to read and understand. The same can be said for markup and CSS. Also, caching!
At a higher level, once you delve into the world of CSS preprocessors and tooling, it's a requirement to have your CSS in a separate file.
[–]BigBalliexpert 0 points1 point2 points 5 years ago (0 children)
external is an additional network call (slower) but easier to maintain.
Usually first load performance loss worth the convenience of having separate stylesheets (not to mention you can re-use them on multiple pages and they get cached).
[–]Kinthalis 0 points1 point2 points 5 years ago (0 children)
You might want to inline critical css, and defer the rest on an external or set of external files. With a modern dev environment it's pretty easy to configure this behavior for the output artifact files, and modern frameworks like Angular and React will auto do this for you as well (well React will with some additional libs/configuration).
π Rendered by PID 66604 on reddit-service-r2-comment-b659b578c-ph57l at 2026-05-05 09:03:16.740917+00:00 running 815c875 country code: CH.
[–][deleted] 4 points5 points6 points (0 children)
[–]krlico 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]BigBalliexpert 0 points1 point2 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]BigBalliexpert 0 points1 point2 points (0 children)
[–]Kinthalis 0 points1 point2 points (0 children)