dom
Isotope
Our great sponsors
dom | Isotope | |
---|---|---|
30 | 19 | |
1,535 | 10,987 | |
1.8% | 0.3% | |
6.5 | 0.0 | |
7 days ago | over 2 years ago | |
HTML | HTML | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dom
-
A Response to "Have Single-Page Apps Ruined the Web?"
in plain htmx, you can target an area that doesn't disrupt a playing video (e.g. the comments box appending to the comments) or you can use a morphing algorithm that disrupts the DOM less.
i have my own morphing algorithm (and a corresponding htmx plugin that allows you to use it) called idiomorph:
https://github.com/bigskysoftware/idiomorph/
i've also been working with the chrome team to get a feature added they are calling "atomic moves":
https://github.com/whatwg/dom/issues/1255
this would allow us to move elements around in the DOM without losing things like play state or focus or whatever
very excited for this last idea, I think it will be a huge boon for the web in general, not just for htmx
-
HTML Attributes vs. DOM Properties
What I said in my previous comment is observably true. Try making a demo where it isn't.
> A DOM node is a living mutable thing, but the JavaScript object representing that node is not.
The JavaScript object is mutable. The first example in the article shows this.
> That is also why a node list is not an array.
Modern APIs on the web return platform arrays (eg JavaScript arrays). https://webidl.spec.whatwg.org/#js-sequence - here's where the WebIDL spec specifies how to convert a sequence to a JavaScript array.
I'm fully aware of NodeList. There's a reason the spec calls them "old-style" https://dom.spec.whatwg.org/#old-style-collections
> I can understand how this is confusing if you have never operated without a framework, but otherwise it’s really straightforward
Sighhhhhh. I've been a web developer for over 20 years, and spent a decade on the Chrome team working on web platform features. Most of my career has been on the low-level parts of the platform.
Could it be possible that people are disagreeing with you, not because they're stupid, but because you're in the wrong? Please try to be open minded. Try creating some demos that test your opinions.
-
Using XPath in 2023
Domenic Denicola (the man who ruined promises) probably will as well.
https://github.com/whatwg/dom/issues/67
-
Which browser do you recommend, one for personal security-focused use and one for work?
I'm pretty sure it is, since I get "TypeError: nodes[i].parentNode.href is undefined" and "TypeError: $mainmenu.parent(...).get(...) is undefined" errors on both Pale Moon and LibreWolf. Which is part of Shadow/DOM, and originated from google (https://hacks.mozilla.org/2015/06/the-state-of-web-components/). Not sure when this particular thing was introduced, since it's a "living standard"/experimental feature (https://dom.spec.whatwg.org/).
-
That people produce HTML with string templates is telling us something
JSX chose to align names to the DOM spec [0]. Same for htmlFor and friends.
[0] https://dom.spec.whatwg.org/#ref-for-dom-element-classname%E...
-
Notback BETA - A new PHP frontend framework
You can see why I say this here: https://dom.spec.whatwg.org
-
Understanding the Benefits of "Quirky" Web Languages
The product logos in this article's cover image include different languages and technologies some of which are still relevant for web development today: HTML, CSS, JavaScript / ES / TypeScript (and the DOM), SVG, PDF, PHP, SQL (mySQL, MariaDB), mongoDB, Node.js (the most successful server-side implementation of JavaScript so far).
-
Declarative Shadow DOM
Thanks for the shout-out! I think I mention this in the talk, but note that YMMV. I designed that benchmark as a kind of "worst-case scenario" where shadow DOM / scoped styles really show a benefit. Depending on your CSS rules, DOM size, and amount of thrashing, the perf benefit could be small to large.
Also, it's still possible to shoot yourself in the foot, especially if you have a large/complex stylesheet repeated across multiple shadow roots. (Not because of the repetition – that's optimized in browsers [1] – but rather because of the number of DOM nodes affected.)
That said, I still think the perf benefits of shadow DOM have been undersung. And Declarative Shadow DOM makes it way more useful.
[1]: https://github.com/whatwg/dom/issues/831#issuecomment-585489...
-
HTML DOM ️loves Javascript! 💕 #TLA 😘
We luh-luh-luv you! They gestated and nurtured the spec. They fought over bike sheds! All for us!!
- AI Found a Bug in My Code
Isotope
-
Ask HN: What was an interesting project you started and finished over a weekend?
I had access to a Windows server VM at a previous job that was commissioned for a piece of work. The actual work was then stopped, but the IT folks never decommissioned the VM so I had a nice little server on the local network to play around with. It didn't have Internet access so I was somewhat limited in what I could do with it.
I ended up building a hacky internal IIS/PHP web app (I guess these days one would call it an SPA) that hooked into the company's Active Directory that showed a nice little page of people in our "business unit", with their names, pictures, employee grade (analyst/consultant/manager etc.) and subteam -- basically any bit of info I could get from a user's Active Directory profile.
It used Datatables (https://datatables.net/) for a simple text-based table view and Isotope (https://isotope.metafizzy.co/) for a card-based grid view that you could quickly toggle between.
I called it the "Book of Faces" and announced it to my team at a team social event, and it took off massively beause it was way more performant, simpler, and just much less painful to use than using the clunky corporate intranet app to check user profiles.
Word spread outside of my team and I started getting requests from various other teams to set up similar pages for them as well, which I was only too happy to oblige. This spurred me on to refactor it to make it as simple as possible to set up new team pages.
This silly thing boosted my profile a ridiculous amount within the company, just because I'd left a small footer "emailto" link that people could use to get in touch with suggestions/bugs.
I maintained it as a side project and surreptitious internal app for about 6 years until I left the org, after which I handed it over to someone else. Last I heard though, internal IT finally caught wind of it, and in what I suppose is a "progressive for its kind" response, spoke to the users of the various pages and built a corporate-ised version of the same thing.
A decade-plus of working in tech and data, and that IIS-PHP-JS monstrosity is still one of the bits of work I'm most proud of!
-
BrowserBox Pro goes open-source
Thanks, we will fix if wrong. Tho...
It may be too late!
Other products in this: Qt - https://doc.qt.io/qt-6/licensing.html, Isotope - https://github.com/metafizzy/isotope#license
What do you suggest?
-
Smooth transition after one element disappeared
I want other elements to animate like this example when a specific element become display none https://isotope.metafizzy.co/
-
Generating Income from Open Source
https://github.com/metafizzy/isotope
Does the commercial license use a different repo?
-
Help Creating Filter Search bar without using plugins
If you want to display all the listings, then drill down results with filters, you could accomplish something like this using Isotope.
-
How the heck does this work?
I was also a big fan of isotope library back in the day
-
Hi guys. Am trying to achieve product filtering without using a plugin. Is there a way to do that with codes or css. If yes, can I have it?
Not easily. I code it using isotope https://isotope.metafizzy.co or custom JS. You’ll need to be comfortable with editing the product loop.
-
How to use client modules in non-client-only component?
Firstly, thank you so much for your help. The package is https://isotope.metafizzy.co
- Guida Isotope Filtering
- I am in the process of creating a "Products" page where the users should be able to filter the different product categories by using 'pressed buttons'. Does any know how I can create this function? If there are easier/better alternatives, please let me know.
What are some alternatives?
hyperHTML - A Fast & Light Virtual DOM Alternative
DataTables - Tables plug-in for jQuery
extension-manager - A utility for browsing and installing GNOME Shell Extensions.
Masonry - :love_hotel: Cascading grid layout plugin
brutal - 🏢 An operating system inspired by brutalist design that combines the ideals of UNIX from the 1970s with modern technology and engineering
Tabulator - Interactive Tables and Data Grids for JavaScript
IntersectionObserver - Intersection Observer
Packery - :bento: Gapless, draggable grid layouts
WHATWG HTML Standard - HTML Standard
mixitup - A high-performance, dependency-free library for animated filtering, sorting, insertion, removal and more
domdiff - Diffing the DOM without virtual DOM
flexboxgrid - Grid based on CSS3 flexbox