snarkdown
django-compressor
Our great sponsors
snarkdown | django-compressor | |
---|---|---|
3 | 6 | |
2,215 | 2,753 | |
- | 0.4% | |
0.0 | 6.6 | |
over 1 year ago | 11 days ago | |
JavaScript | Python | |
MIT License | GNU General Public License v3.0 or later |
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.
snarkdown
-
NPM Needs: snarkdown
Github Repo: developit/snarkdown
-
How I reduced Raveberry's transferred frontend code by 90%
Analyzing these dependencies, I found that some of them could be reduced or replaced. For example, jquery-ui is used for autocompletion and reordering. All additional widgets provided by jquery-ui (e.g. sliders, datepickers) are dead weight and can be excluded from the final bundle. Another example is marked, which was used to render the changelog. However, the changelog has a very simple structure and does not require a ~300KB library to be parsed. So instead, I use snarkdown, a lightweight alternative which is fully sufficient for this application.
-
Making Nested Comments - Building a Real-Time Commenting System in React [Part 2/3]
I wanted to add markdown support because I like to make comments readable and walls of text are not great for that, but I didn't want anything too heavy or complicated for the end user. I ended up using a library called snarkdown. I simply copy-pasted the source code in my project under lib/snarkdown.js to remove support for images and headings because we don't need that.
django-compressor
-
Why bother ?
In general, you can use almost any plain JS library by simply loading it in your view template. For forms specifically, you can write custom widgets and define dependencies to libraries via form assets. django-compressor might be worth a look if you go heavy on this.
-
I wrote a filter for Django Compressor that removes unused CSS classes and makes your ะกSS files much smaller
Idk, it depends on how much you care about the page loading time. Even without the PurgeCSS filter, I would recommend the Django Compressor app. I use it on all my websites. It automatically merges your css/js files and minifies them (removes white spaces, comments, etc.). It also creates a unique name for the combined CSS so if you changed your CSS files, your users will always see the fresh version, not the cached by the browser one.
-
I made a website that helps you to find similar YouTube channels
django_compressor - for merging and minimizing css and js assets
-
what are 3 django packages everyone should know about?
django-compressor with django-libsass for auto sass compilation
-
A powerful library to minify-html for django
But isn't that what you have django-compressor for?
-
How I reduced Raveberry's transferred frontend code by 90%
The external dependencies were downloaded into the static/ folder containing all frontend assets using yarn and a package.json. Other than that, yarn was not used. Next I ran a bash script that removed all files I did not need, keeping the javascript, css and font files that should be served. In html, these files where directly included. I knew that loading many files is bad, so I used django-compressor to combine them into one big file. Conveniently, this tool also provided me with a way to compile scss.
What are some alternatives?
marked - A markdown parser and compiler. Built for speed.
django-pipeline - Pipeline is an asset packaging library for Django.
purgecss - Remove unused CSS
webassets - Asset management for Python web development.
berry - ๐ฆ๐ Active development trunk for Yarn โ
django-storages - https://django-storages.readthedocs.io/
raveberry - A multi-user music server with a focus on participation
jinja-assets-compressor - A Jinja extension (compatible with Flask and other frameworks) to compile and/or compress your assets.
webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
Flask-Assets - Flask webassets integration.
PostCSS - Transforming styles with JS plugins
File Conveyor - File Conveyor is a daemon written in Python to detect, process and sync files. In particular, it's designed to sync files to CDNs. Amazon S3 and Rackspace Cloud Files, as well as any Origin Pull or (S)FTP Push CDN, are supported. Originally written for my bachelor thesis at Hasselt University in Belgium.