jdoepro
Members
-
Joined
-
Last visited
Reputation Activity
-
jdoepro reacted to sash_oo7 in Whats the best way to check large css file for parts breaking up the css?w3c css validator
https://jigsaw.w3.org/css-validator/
you can paste your css directly or can paste css link there and fix the errors one by one that show up there
-
jdoepro reacted to rbrtsmith in what to use to make the website responsive ?!!Neither are the way to go. WordPress is better than Wix. But Contentful + Gatsby for example will blow away a WordPress site in terms of security, uptime, hosting cost, ability to handle extremely high traffic, performance (just about every metric you can think of).
This is because Gatsby will generate a static site (raw HTML files) that will load from Netlify for example where you can host a static site for free and because there's no database lookup when people visit your site it will load much faster and be more secure. If the DB goes down your website will not.
How this works is that when you publish some content to Contentful (or another headless CMS) it will trigger a webhook which you can use to trigger a Gatsby build - Gasby will pull the data from the database and re-deploy the website. You can actually do the same with the WordPress API and combine it with Gatsby, however Contentful is a much better CMS than WordPress.
I'd never use WordPress in the "traditional" way again and if forced to use it I'd stick to the headless output that it has. The only scenario I can think of where a statically generated website won't work are those that are highly dynamic e.g.
- You are running large numbers of A/B tests
- The website has quite heavy user personalisation
It's worth noting that Gatsby can still fetch data on the client so it will work fine for a shop where the stock levels change rapidly, you can statically generate all the pages without the stock levels and then fetch the them on the client side when the application loads in.
-
jdoepro reacted to BlueDreamer in Animation is more important than UXStand by for an affiliate link drop for an animation app
-
jdoepro reacted to rbrtsmith in Animation is more important than UXI normally argue that animation is important from a UX perspective but is it the most important aspect of a website / application? Absolutely not.
What use is an animation if the user cannot add a product to their basket? or checkout securely? There are many aspects of web development that are arguably more important than animations.
-
jdoepro reacted to rbrtsmith in what format should a header be ?Just want to make sure people don't get confused with this as I know your intention is to make sure the design scales down, but readers might mis-interpret it.
Don't take a mobile design and just adapt it. A design should be created that works across all devices. I've seen many terrible websites that only really considered mobile and the design just didn't make good use of larger devices. For this reason I actually dislike the term "mobile first". Instead you want to consider all viewports right from the get go so no device size becomes an afterthought or secondary.
-
Your JS code isn't compiled up front like it is with a language like c++, in languages that require a compilation step, you would write your code then run a compiler on it after. Instead, your JS is passed through an interpreter at run time that converts your JS code to bytecode. There are typically a few steps to this, including an initial pass over of your code to allocate memory. This technically is a form of compilation, but at runtime you would get errors that a compile time language would prevent happening.
The interpreter is part of the engine, an engine likely does a bit more in terms of scheduling code and optimisation. I'm not really 100% sure to be honest, you typically don't need an understanding of low-level implementations like this unless you want to work on browsers or API specs.
-
jdoepro reacted to rbrtsmith in Help with JS array of objectsYou won't be able to do what you suggested. Why not use data structures like this where it's an object with a type that can be used to deduce whether it's a list of birds or dogs and then containing some items.
const birdNames = { type: 'birds', items: ['tom', 'mark'], } const dogNames = { type: 'dogs', items: ['percy', 'jack'], } const transformNames = ({ type, items }) => type === 'birds' ? items.map(name => ({ name, beak: true })) : items.map(name => ({ name, tail: true })) transformNames(birdNames) // [{ name: 'tom', beak: true }, { name: 'mark', beak: true }] transformNames(dogNames) // [{ name: 'percy', tail: true }, { name: 'jack', tail: true }] You don't want to be trying to deduce what type something is by the variable name, you should be able to rename things without worrying about breaking your app.
-
jdoepro reacted to BrowserBugs in Development required for SSL certificateFor the certificate itself I cannot see the need of £340 to do anything. In their defence their fee might include updating all internal links to https, ensuring all pages correctly 301 to https etc. I've not used Umbraco so cannot comment on that bit.
-
Your job is done.
Except to get paid.
You don't. You move onto the next project.