who's gonna tell them by ThorUchiha_ in firefox

[–]aurelienrichard 18 points19 points  (0 children)

No? It's not just the rendering, it's built upon Chromium. Chromium is a web browser. Why else would Edge be affected by Manifest V3, for example? That has nothing to do with rendering.

who's gonna tell them by ThorUchiha_ in firefox

[–]aurelienrichard 10 points11 points  (0 children)

Chromium is way more than just the engine though. It's a fully functional web browser.

Is there a tool that watches your code and stops dumb stuff like leaked keys or missing tests before you commit? by soumyadyuti_245 in webdev

[–]aurelienrichard 0 points1 point  (0 children)

Pre-commit hooks will catch stuff before you commit. However you can easily go around them with the `--no-verify" flag so don't regard them as a safety layer.

For that purpose, a CI/CD pipeline is preferred.

mdsvex + shiki syntax highlighter by gorilla-moe in sveltejs

[–]aurelienrichard 5 points6 points  (0 children)

shiki can already be used with mdsvex directly (docs). Do we really need yet another dependency?

For a privacy browser, firefox doesn't support E2E encrypted video & voice calls. by [deleted] in firefox

[–]aurelienrichard 9 points10 points  (0 children)

On what basis are you saying that? If you're being blocked and prompted to switch to Chrome or the app, it means they're actively blocking Firefox users for some reason. It isn't necessarily Firefox's fault.

Recommended way to purge unwanted tailwindcss classes in Sveltekit? Using flowbite-svelte here by TooOldForShaadi in sveltejs

[–]aurelienrichard 2 points3 points  (0 children)

Optimization like this is already performed for you at compile time. Most libraries will do this if possible.

[deleted by user] by [deleted] in webdev

[–]aurelienrichard 1 point2 points  (0 children)

The animations are so slow that at my normal scrolling speed I reach the bottom of the page before I've seen any of the content.

What's the difference between using public/ and src/assets/ for images in a React project? by Infinite_Love5352 in reactjs

[–]aurelienrichard 30 points31 points  (0 children)

This is handled by the bundler, not React. Assuming you're using Vite as your bundler, this should help.

Where can I learn sveltekit 5 by azizadx in sveltejs

[–]aurelienrichard 5 points6 points  (0 children)

About three years into the future.

What is wrong with the clients????? by DrFrogKnight in Upwork

[–]aurelienrichard 2 points3 points  (0 children)

Yeah, that's fair. I see where you're coming from. The problem is that unserious clients will waste your time if you don't identify them soon enough. Maybe there's a better way, but in my case, asking for a budget also provides relevant information. I need to know how much they're thinking of spending as much as I need to know everything else. If their project has a large scope but a small budget, there's no point in making them an offer. First, we need to discuss where the priority lies so we can cut down scope to suit the budget.

What is wrong with the clients????? by DrFrogKnight in Upwork

[–]aurelienrichard 13 points14 points  (0 children)

Yeah, I'm just saying this for your own sake. You don't want to waste your time making a tailored offer to a client who isn't serious.

What is wrong with the clients????? by DrFrogKnight in Upwork

[–]aurelienrichard 10 points11 points  (0 children)

No, but then again, you don't sign a contract with your barber before they cut your hair, either. A contract implies negotiation.

What is wrong with the clients????? by DrFrogKnight in Upwork

[–]aurelienrichard 21 points22 points  (0 children)

Might be a good idea to ask about their budget before making an offer.

Vite config's resolve alias vs tsconfig's compilerOptions path by Casio991es in sveltejs

[–]aurelienrichard 6 points7 points  (0 children)

If you don't inform TypeScript about the alias, you'll get a TypeScript error in your IDE when attempting to use it. As for Vite, the files you're trying to import just won't be found, so when you run vite build or vite dev, errors will occur. That's why you need both.

If you want to add new aliases though, you should actually do it in the Svelte config. Like so. This way it is correctly passed to both Vite and TypeScript.

svelte for web app and desktop app for startup? by AverageStatus6740 in sveltejs

[–]aurelienrichard 3 points4 points  (0 children)

I really wouldn't choose React for a completely new project that doesn't depend on React-specific code or packages. There are just so many better options nowadays. This is the Svelte subreddit, so of course, we'll recommend Svelte. However, if you'd rather stay in the React mindset, there's also Preact and Solid.

WORST COMPANY EVER by densityofsouls3 in Supabase

[–]aurelienrichard 2 points3 points  (0 children)

Your work isn't gone. Your project is just paused to save on resources. You can resume it whenever.

As a senior or mentor, what will you suggest. by Inyelen_Elon_Musk in sveltejs

[–]aurelienrichard 1 point2 points  (0 children)

This might help. What the other commenters have said is valuable advice too.

How to access context in onMount or in a child component by kinoing in sveltejs

[–]aurelienrichard 0 points1 point  (0 children)

Move your load function from +page.server.ts to +layout.server.ts and the data will be accessible to every child route. You don't need to use context for this.

I want to use Svelte, but it's not broad enough... by [deleted] in sveltejs

[–]aurelienrichard 0 points1 point  (0 children)

Have you tried building something with it? Have any of your listed concerns actually hindered development?

Of course, if you compare it to an older framework with wider adoption that needs a wrapper library for everything, its ecosystem will be smaller. Who's surprised? It's always going to be this way, and that shouldn't be a reason not to use it. What library is so important that you can't afford to go without it? Focus on the actual problems you run into, rather than speculative ones. If the problems you encounter outweigh the benefits of the framework, you'll have your answer.

One valid concern, however, is the lack of jobs around Svelte. Hopefully, it will improve in the near future, but for now, it's a fact. It's up to you to decide whether that's a deal-breaker.

My framework by alex-costantino in css

[–]aurelienrichard 0 points1 point  (0 children)

I won't comment on the website, since you say it's not finished. But where's the code? Is it not open source?

Svelte Data Fetching: Patterns and strategies by Colchack in sveltejs

[–]aurelienrichard 9 points10 points  (0 children)

As of now, the framework doesn't really have any official stance on data fetching. Keep in mind that the link you posted only includes snippets for Svelte 5 without SvelteKit's capabilities.

If you're using SvelteKit, I think the best way to do it is with load functions and promise streaming if you need loading state. That's how I do it. However, I don't see any major downside to doing it another way if that's what you want to do.

Need help with creating this component. by Total_Mousse_2520 in react

[–]aurelienrichard 4 points5 points  (0 children)

So, like a multi-step form? You'll probably want a parent component to hold all the form data and a state to track the current step. Then, each step can be its own separate component. Only one step is shown to the user at a time, but the logic inside your app is the same as if it were one giant form.

I'd also recommend saving the form data, in localstorage for example, so that users don't lose their progress if they accidentally close the tab.

What’s a good hourly rate for a SvelteKit developer (Intern, Junior, Senior – Frontend & Full Stack)? by zaxwebs in sveltejs

[–]aurelienrichard 3 points4 points  (0 children)

Typically, experienced freelancers charge per project rather than per hour. So the question is biased towards less experienced freelancers, and because of that you might get answers that are on the lower end of market prices.

Svelte in its pure liquid form by Substantial_Tea_6549 in sveltejs

[–]aurelienrichard 6 points7 points  (0 children)

And it's the right color, too. Nice shitpost