• 0 Posts
  • 7 Comments
Joined 6 years ago
cake
Cake day: June 7th, 2020

help-circle


  • rxxrc ( rxxrc@lemmy.ml ) toLinux@lemmy.ml•*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    2 years ago

    Libnotify backends are D-Bus services, which isn’t really something you’d want to implement in a shell script. Going by some source code I just found, it looks pretty straightforward to do in Python, so that’s one option.

    The easier option would be to use an existing notification daemon that lets you disable the default GUI and specify a script to run as a hook, but I don’t actually know of any like that.




  • This is honestly quite mild by website bloat standards. If that’s really the entirety of their Javascript it’s already way smaller than e.g. Medium or what this blog post considers “slightly bloated”. The fact that it’s in one file in 13 lines is also very standard. It makes no difference to the parser whether there are newlines or not, and removing them will in fact be saving bytes.

    I’m guessing the performance issues with the site are more to do with how it’s coded. If it’s really bad for what sounds like a simple use case it might even be a cryptominer or something. A lot of those “random utility as a service” sites are.