Chore: Optimising Flutter Web App
Page Load Time [Smoke and Mirrors] 🪄
#325
Labels
chore
a tedious but necessary task often paying technical debt
flutter
Flutter related issues
T4h
Time Estimate 4 Hours
tech-debt
A feature/requirement implemented in a sub-optimal way & must be re-written
technical
A technical issue that requires understanding of the code, infrastructure or dependencies
At present there are a handful of instances of
<script>
in theindex.html
file:The first instance is just a variable that
Flutter
updates. Nothing to do here.app/index.html
Lines 21 to 24 in af4e656
flutter.js
is already loaded afterDOM
with thedefer
keyword:app/index.html
Line 26 in af4e656
The only way we can improve this is to dynamically create this
<script>
tag 🪄and only load
flutter.js
after theDOM
has finished loading. ⏳I have an idea for how we can do this but it's going to require some
JS
wizardry. 🧙The interesting (complex) part is
window.addEventListener('load' ...
block:app/index.html
Lines 39 to 54 in af4e656
Todo
JS
after theDOM
has loaded.The text was updated successfully, but these errors were encountered: