This website displays text content, image and styling without containing any source code
If you open the page source Ctrl + u
, it will be empty, also selecting the page components using developer tools will yield empty styling.
If you find the project useful, please consider supporting, or contributing.
The HTTP standard has a Link
header attribute for linking to other websites or resources. These links may have properties describing the relationship to the given resource.
Some browsers support this relationship to be: stylesheet
. In which case they will be loaded and applied to the current page. By using a custom FastAPI server and manually setting this header, we are able to make the browser load the stylesheet without explicit links in the html code.
When loading a webpage with no content or missing html
, head
or body
tags, browsers will create these automatically. This can be used to apply styling to the ::before
and ::after
elements of the head DOM element. Styling used: css
- Python
- Python Venv
- Pip
- Make
- Run
make
- Open browser: http://127.0.0.1:8080
make venv
to create virtual environment.make install
install python dependencies to venv.make run
start the server.- Open browser: http://127.0.0.1:8080
Docker has to be installed and running on your system.
docker build -t srclessweb .
build container.docker run -p8080:8080 srclessweb
run container and expose to port 8080.
- Flower image: pexels
Tested in: 05/2022
Loading sylesheets using the link tag is not an RFC standard.
Browser | Version | Compatibility |
---|---|---|
Firefox | 99.0 |
✅ |
Chrome | 101.0 |
❌ |
Edge | 101.0 |
❌ |
Brave | 1.38 |
❌ |
Safari | 15.4 |
❌ |
Loaded site | Source |
---|---|
![]() |
![]() |