livellosegreto.it is one of the many independent Mastodon servers you can use to participate in the fediverse.
Livello Segreto è il social etico che ha rispetto di te e del tuo tempo.

Administered by:

Server stats:

1.2K
active users

#js

6 posts6 participants0 posts today

Dans cette vidéo, découvrez comment #publier une #application web #statique (#HTML, #CSS, #JS) sur la #Forge des communs numériques éducatifs #LaForgeEdu, sans serveur (ni PHP, ni Node).

À partir d’un modèle de site simple disponible sur la Forge.

🔗tube-sciences-technologies.app

Nous verrons comment :
- #bifurquer le dépôt vers son propre espace,
- personnaliser le titre et les paramètres du projet,
- remplacer les fichiers du modèle par ceux de son application,
- effectuer un commit,
- activer la publication dans l’onglet "Pages" pour générer un lien public simplifié.

Un tutoriel pas-à-pas pour mettre rapidement en ligne ses propres ressources pédagogiques. 😉

Just learnt a really big lesson in NextJS - not every component has to be set to the fancy factory components.

Like for example, I had a simple URL shortener app. Initially, I had set <Link />, pointing to the https://url/shortcode.

The consequences of this was that the link kept getting preloaded, and the buttons incremented on every page reload.

<a /> fixed this.

When writing #rust I always put parentheses around if statements like this:

if (sth_is_true) {}

instead of just going with:

if sth_is_true {}

Seems like my brain isn't able to switch between #JS and Rust in this regard.

This month's performance hero is a person after my own heart – someone who is passionate about building a secure, accessible, performant web for EVERYONE, and who always leads with a deep compassion for users. Let's all join in celebrating Alex Russell (@slightlyoff)!

speedcurve.com/blog/performanc

SpeedCurveSpeedCurve | Performance Hero: Alex RussellOur newest performance hero is passionate, provocative, and unapologetically honest. Join us in celebrating Alex Russell!

TIL the innerText property represents the *rendered* text, not the actual text in the DOM - for that you need textContent. So if you've uppercased your content with #CSS it will also be uppercase.

I just spent way too long debugging why the #Shopify predictive search breaks if I update the styling of the search button!

Compare your #webapps and see how much memory and CPU they are using.
Oh wonder #SPAs are more prone to memory eating, by nature, there is more dynamic page content, more #JS. Already the base memory footprint is double that one of an MPA.
Just check out the your browser's task manager. #devtools
And in doubt #usetheplatform, or in other words: HTML and CSS are powerful tools and solve more problems than some may think. Try to think simple(r).

Folks who #website: I'm trying to create a slice'n'dice-able #data #table -- somewhat like instances.vantage.sh/ with the per-column client-side search/constraint/etc. FWIW my data's a discrete JSON file.

I'm allergic to JavaScript insofar as I have zero idea what I'm doing with it (and *can't* do anything with it, myself) but will happily copy'n'paste it as needed.

Got any pointers? #websites #HTML #datadriven #javascript #js #webdev #WebDesign #WebDevelopment #dataviz

instances.vantage.shAmazon EC2 Instance ComparisonA free and easy-to-use tool for comparing EC2 Instance features and prices.

"SPA Feel – Pattern #1 – Restore Scroll Position"

Combine the inherent simplicity and performance of MPAs with the smooth user experience of SPAs, making SPAs often outdated.

picostitch.com/blog/2025/03/sp

Initially written about at mastodontech.de/@wolframkriesi

picostitch - crafting (and) JavaScriptSPA Feel – Pattern #1 – Restore Scroll Position## Introduction