alperyazar / ayazar.dev

https://ayazar.dev personal webpage
https://ayazar.dev
Creative Commons Attribution Share Alike 4.0 International
1 stars 0 forks source link

Gereksiz JS/CSS include #19

Open alperyazar opened 2 months ago

alperyazar commented 2 months ago

Sphinx altyapısı ile ilgili olduğunu düşünüyorum. Eklentilerin JS/CSS kodları her sayfada etkin. Örneğin asciinema player'ının JS vs CSS kodu her sayfada geliyor. Oysa ki ihtiyaç olan sayfalarda olması UX ve SEO açısından daha uygun bence. Ama Sphinx altyapısı buna imkan tanımıyor olabilir. Yine de bir bak. lazy loading gibi bir şey olmalı yani ihtiyaç olan sayfalarda olmalı sadece bence.

<link rel="stylesheet" type="text/css" href="[_static/pygments.css?v=a746c00c](view-source:https://ayazar.dev/_static/pygments.css?v=a746c00c)" />
<link rel="stylesheet" type="text/css" href="[_static/styles/furo.css?v=135e06be](view-source:https://ayazar.dev/_static/styles/furo.css?v=135e06be)" />
<link rel="stylesheet" type="text/css" href="[_static/copybutton.css?v=76b2166b](view-source:https://ayazar.dev/_static/copybutton.css?v=76b2166b)" />
<link rel="stylesheet" type="text/css" href="[_static/asciinema-player_2.6.1.css](view-source:https://ayazar.dev/_static/asciinema-player_2.6.1.css)" />
<link rel="stylesheet" type="text/css" href="[_static/asciinema-custom.css](view-source:https://ayazar.dev/_static/asciinema-custom.css)" />
<link rel="stylesheet" type="text/css" href="[_static/styles/furo-extensions.css?v=36a5483c](view-source:https://ayazar.dev/_static/styles/furo-extensions.css?v=36a5483c)" />
<link rel="stylesheet" type="text/css" href="[_static/custom.css?v=b072d14e](view-source:https://ayazar.dev/_static/custom.css?v=b072d14e)" />

ve

<script src="[_static/documentation_options.js?v=c91cfd43](view-source:https://ayazar.dev/_static/documentation_options.js?v=c91cfd43)"></script>
<script src="[_static/doctools.js?v=9a2dae69](view-source:https://ayazar.dev/_static/doctools.js?v=9a2dae69)"></script>
<script src="[_static/sphinx_highlight.js?v=dc90522c](view-source:https://ayazar.dev/_static/sphinx_highlight.js?v=dc90522c)"></script>
<script src="[_static/scripts/furo.js?v=32e29ea5](view-source:https://ayazar.dev/_static/scripts/furo.js?v=32e29ea5)"></script>
<script src="[_static/clipboard.min.js?v=a7894cd8](view-source:https://ayazar.dev/_static/clipboard.min.js?v=a7894cd8)"></script>
<script src="[_static/copybutton.js?v=f281be69](view-source:https://ayazar.dev/_static/copybutton.js?v=f281be69)"></script>
<script src="[_static/asciinema-player_2.6.1.js](view-source:https://ayazar.dev/_static/asciinema-player_2.6.1.js)"></script>
<script src="[_static/translations.js?v=34f4c3a9](view-source:https://ayazar.dev/_static/translations.js?v=34f4c3a9)"></script>

gibi. asciinema, copybutton (+ sanıyorum clipboard), sphinx-highlight hep böyle

alperyazar commented 2 weeks ago

27d8ae3fab730a7bf3d48bd6681ea61e12b20610 sonrasında geçtiğim RTD temasında da böyle bir şekilde. Zaten tema ile ilgili değil gözüken, Sphinx ile alakalı bir şey.