DEV Community

πŸ’‘ Tips to Speed Up Your Website Loading Time πŸ’¨

Sh Raj on April 05, 2024

πŸ’‘ Tips to Speed Up Your Website Loading Time πŸ’¨ Know More :- https://codexdindia.blogspot.com/2024/04/tips-to-speed-up-your-website-load...
Collapse
 
madhusaini22 profile image
Madhu Saini • Edited

Information rich Article!

Thanks for sharing

Collapse
 
sh20raj profile image
Sh Raj

Rich or Rick
Is it a new word that I don't know πŸ€”

Collapse
 
sh20raj profile image
Sh Raj

This Article is also in the Google feeds
Image description

Thread Thread
 
madhusaini22 profile image
Madhu Saini

Wow, see you did it!!

Amazing

Collapse
 
madhusaini22 profile image
Madhu Saini

*rich

Thread Thread
 
sh20raj profile image
Sh Raj

And All Set ;)

Collapse
 
sh20raj profile image
Sh Raj

I need your help in one of my small project

If you could do :)

Can you fix this issue :- github.com/SH20RAJ/ScrollProgressJ...

Collapse
 
madhusaini22 profile image
Madhu Saini

okay, let me check.

Can you tell me what's the issue you're facing?

Thread Thread
 
sh20raj profile image
Sh Raj

I want the the scroll line progress bar to end when the target element ends in scrolling by default it's on the whole body element height

for example see the website :- sh20raj.com/madhusaini22/how-to-re... ( I created dev.to clone/whatever in NextJS with API )

the line loader should ends with . postcontainer end, and users can set the element using queryselector see the github readme I tried to add the feature it's not a problem btw I just wanted to add one more feature and I think you can do it so contribute here :- github.com/SH20RAJ/ScrollProgressJS

GitHub logo SH20RAJ / ScrollProgressJS

ScrollProgressJS is a lightweight JavaScript library that creates a customizable scroll progress indicator for web pages. It allows you to display a visual progress bar indicating how much of the page has been scrolled.

ScrollProgressJS

Visitors

ScrollProgressJS is a lightweight JavaScript library that creates a customizable scroll progress indicator for web pages. It allows you to display a visual progress bar indicating how much of the page has been scrolled.

ScrollProgressJS Demo

Features

  • Customizable Progress Bar: Configure color, height, and position of the progress bar.
  • Auto-Initialization: Automatically initializes if data-autoload attribute is set.
  • Responsive: Adjusts dynamically as users scroll through the page.
  • Lightweight: Simple and efficient library with no external dependencies.
  • Scroll Element Selector: Specify the element to track for scroll progress.

Installation

You can include ScrollProgressJS in your project via CDN, npm, or by downloading the script:

CDN

<script src="https://cdn.jsdelivr.net/gh/SH20RAJ/ScrollProgressJS@main/ScrollProgress.js"></script>
Enter fullscreen mode Exit fullscreen mode

npm

npm install scroll-progress-indicator
Enter fullscreen mode Exit fullscreen mode

Download

Usage

Browser

Basic Initialization

To initialize ScrollProgressJS with default settings:

<script src="https://cdn.jsdelivr.net/gh/SH20RAJ/ScrollProgressJS@main/ScrollProgress.js" data-autoload="true">
…
Enter fullscreen mode Exit fullscreen mode

Let's do rest of chat on discussions :- github.com/SH20RAJ/ScrollProgressJ...

Thread Thread
 
madhusaini22 profile image
Madhu Saini

okay, I got your issue now. Let's dicuss on GitHub

Thread Thread
 
sh20raj profile image
Sh Raj

πŸš€

Collapse
 
cedricrgt profile image
cedricrgt

Great article but I am surprise. webp is not mentioned for images. It is the format for mobile that should be used. Even more Google recommand to use it for mobile performance.

Collapse
 
sh20raj profile image
Sh Raj

Updated βœ…

And btw Thanks for the suggestion ☺️

Collapse
 
anitaolsen profile image
Anita Olsen*Β°β€’.β˜†

As a new website owner, I highly appreciate these tips! Thank you so much for sharing them with us! ✨

Collapse
 
sh20raj profile image
Sh Raj

Glad it helped :⁠-⁠)

Collapse
 
rmiah209 profile image
Raheem Miah

Extremely helpful, thank you!

Collapse
 
i-santosh profile image
Santosh Kumar • Edited

It's really amazing information

Collapse
 
shyam_10 profile image
Shyam raj

Great share❀️πŸ”₯