11ty / 11ty/docs

Internal vs. Inline JS and CSS

Open
#102 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs discussion
Dominant language
Nunjucks
Stars
547
Forks
726
Avg merge
2h 23m
Merged PRs (30d)
3

Description

I don't think 'inline' is an accurate term for what's described on QUICK TIP #001—INLINE MINIFIED CSS and QUICK TIP #002—INLINE MINIFIED JAVASCRIPT.

An internal stylesheet is where you don't have an external CSS file, 
but instead place your CSS inside a <style> element, contained inside the HTML head.
Inline styles are CSS declarations that affect one element only, 
contained within a style attribute:

REF: https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/How_CSS_works#How_to_apply_your_CSS_to_your_HTML

I think for JS as well, inline implies something like a click handler on an element:

<button onclick="console.log('clicked');">Click me</button>

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with QUICK TIP #001—INLINE MINIFIED CSS and QUICK TIP #002—INLINE MINIFIED JAVASCRIPT, then compare their terminology with the linked MDN reference. Update the wording where needed to distinguish internal and inline usage, and confirm both quick tips and their examples remain consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.