Giter Club home page Giter Club logo

front-end's Issues

Optimize CSS resources

Currently, this project has a poor performance rating on https://pagespeed.web.dev/.

This is largely due to the fact that we load our icons from a distant source that lead to a lot of unused CSS (we currently load the entirety of Phosphor Icons). By making this file local, we can reduce it at build time.

The second factor would be font loading through Google Fonts (though we may not want to change that as of now).

Load Results In Limit & A Button To Show The Next Results!

Hello.

This 'Mwmbl' search engine loads all results in once, and there is no button or any arrow to load the next. And isn't it will effect the performance of the website? It is very important to implement this feature. And a arrow to go back to previous result, there is no-need to create a new html page for the next results, just modify html elements.

Thanks.

[Feature request] Add support to UXP-based web browsers

Given that this project is in its beginnings yet, it would be ideal to have into account side web browsers such as UXP-based ones like Pale Moon or Basilisk from the start while adding support to certain web features.

By now, the support is none and the website doesn't even load with a maximum of this being thrown in the console:

SyntaxError: expected expression, got keyword 'import'[Learn More]  
index.166e7ea2.js:1:1328

Remove google dependencies

This is mostly about removing Google Fonts as it seems that it does not respect GDPR standards for privacy.

Here is a reddit post linking to an article (in German) talking about Google exploiting IPs from their CDN's users.

This is an occasion to not use any Google dependencies anymore as our primary concern is privacy.

Intermediary queries in browser history

While you typing a search query, with each character URL updates and this commits in browser history.
Suggest to update URL on search form lost focus or on page scroll.

This is how browser history looks like

Browser History Flood

Use atomic design to organize components

Currently there are not a lot of components, but as the project grows we'll need to tidy things a bit more for maintainability.

Organizing our components using Atomic Design could be a great first step in that direction.

My proposal is to create 3 directories in the current components directory, one for each component type (atoms, molecules, organisms).

We don't have pages currently as we rely on a main index.html to display our components, the pages directory should only be added once/if we implement routing and multiple pages.

Race condition when typing in search bar

  • Type something, e.g. "Hacker news"
  • E.g. two requests are made, ""Hacker new", then "Hacker news"
  • The second one returns first and updates the results
  • Then the first one returns and updates it to the results for "Hacker new"

I think we should cancel existing requests before we fire a new one

Respect reduced motion settings

While the minimalist homepage is quite pleasant, the movement on it can be jarring for some folks. For these cases there is the prefers-reduced-motion media query that can be used to develop alternative (usually much more minimal to no) animations.

Originally I had overcomplicated the potential solution (you can see it in the revisions of this issue). There is a simple fix though: wait until the user submits the query, just like other forms. At this point, move the search bar. With reduced motion enabled, pop the search bar up to the top without a transition. This will solve the movement and will also remove the possibility that the movement happens while you are typing, as in the video below.

mwmbl-motion-mid-typing.mp4

Anyway, love the project! I will be following it closely. If you ever want to pop over to Openverse we're also doing a non-profit search engine thing, though admittedly with a specific niche and goal in mind.

Also, if you're happy to accept a PR and any have suggestions for which solution you'd like to see implemented, I'd be glad to take a go at it ๐Ÿ™‚

Disable source maps in production build

The actual build that is made in the deployment workflow generates useless source maps.

We need to use the --no-source-maps to disable this behavior in the build step.

Add links to the social pages and GitHub repository

Having links to the different social pages of the project could be a huge improvement for the project's visibility.

It would also give incentive to contribute to the project.

The first link that could be added are the wiki and the GitHub repository.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.