How I Built Malik News: A Fast, Zero-Backend Bilingual Digital News Portal with Pure HTML, CSS & Vanilla JS
Hello Dev Community! ๐ I recently built and launched Malik News , a fast, lightweight, bilingual (Hindi & English) digital news portal designed to run with zero backend costs on GitHub Pages. ๐ Live Website: https://shailendra-codes.github.io/Malik-News/ ๐ป Source Code: https://github.com ๐ ๏ธ Why Pure Vanilla JS Instead of a Heavy CMS? My goal was to create a news platform that loads instantlyโฆ
I recently embarked on creating Malik News, a fast, lightweight, bilingual (Hindi & English) digital news portal that operates with zero backend costs on GitHub Pages. The live website can be accessed at https://shailendra-codes.github.io/Malik-News/ and the source code is available at https://github.com.
Instead of using a heavy Content Management System, I chose to build Malik News using pure Vanilla JS, aiming to achieve instant loading even on slow mobile networks while keeping the core layout file untouched for frequent updates. The platform follows a modular 3-file structure with index.html serving as the core layout and styling, all-news.html housing all published news articles in article blocks, and loader.js responsible for dynamically fetching the news feed, injecting live breaking news ticker, powering instant search, and managing category filtering.
To ensure a seamless user experience, Malik News eschews external image dependencies. All logos, MN โข NEWS badges, and featured article banners are created using pure CSS gradients and Unicode icons, allowing for sub-second rendering. Additionally, readers can easily filter stories across seven categories or perform real-time keyword searches. Native Web Share and SEO integration are also inherent to each article, complete with WhatsApp/Native Share buttons, an XML sitemap, and indexing through Google Search Console.
I'm eager to hear your thoughts, suggestions for UI enhancements, or ideas for future developments. Please share your feedback in the comments section below.
Rewritten by urgent.news; may contain errors โ check the original.
Source: dev.to