Web Development

Webpack url-loader repeatedly inlines images

webdev: reddit for web developers - Sat, 06/23/2018 - 17:44

I'm new to webpack and I'm using url-loader with the following options:

{ test: /\.(png|jp(e*)g|svg|gif)$/, use: [ { loader: 'url-loader', options: { limit: 8000 } } ] },

Now if I write multiple images in my index.html with the same source

<img src="images/exampleimage.png" alt=""> <img src="images/exampleimage.png" alt=""> <img src="images/exampleimage.png" alt=""> <img src="images/exampleimage.png" alt=""> <img src="images/exampleimage.png" alt=""> <img src="images/exampleimage.png" alt=""> <img src="images/exampleimage.png" alt="">

url-loader will inline the base64 encoded image in each of these img tags, which is ofcourse wrong

What's the correct way then to reference the base64 encoded image without allowing this kind of repetitions?

submitted by /u/bloaterr
[link] [comments]
Categories: Web Development

Although sites these days are responsive, I notice that they are often optimized for 1366x768. Why is that?

webdev: reddit for web developers - Sat, 06/23/2018 - 17:43

Any site you go to, like dribbble, Amazon, Google images, etc, has optimization for 1366x768. Simply resize your browser (I'm on 1080p) down to that screen size, and notice how only a couple things change. Notice that the font sizes, navbars, image sizes, etc. don't scale. Also, sites like Creative Bloq have huge amounts of white space on the sides, which taper off only on smaller screens. Often times, I have to lean in or zoom in to see anything. You guys know why designers keep doing this?

submitted by /u/MatCreatesStuff
[link] [comments]
Categories: Web Development

can you learn web developing by understanding how other website does it?

webdev: reddit for web developers - Sat, 06/23/2018 - 17:26

lets take a retailer store like walgreens and right click inspect element/view source and see how they use html and css. Can i self teach and learn myself by imitating?

Has anyone done this? I want to understand everything their web developer do to make the website run as smooth as possible. how do i get access to all their coding?

Thanks!

submitted by /u/closerthanyouthinkk
[link] [comments]
Categories: Web Development

Is it common for websites to use wordpress for their homepage and blog, then custom dev the rest?

webdev: reddit for web developers - Sat, 06/23/2018 - 16:21

I am a non-technical, and will be working with some devs soon, and I am just curious if it would be appropriate for me to ask/mention this. I have seen sites use wordpress for just their blog portion, but what about homepage too?

Looking at this for a SaaS app.

submitted by /u/loki777coyg
[link] [comments]
Categories: Web Development

Can I get some insight about breaking into being a web dev?

webdev: reddit for web developers - Sat, 06/23/2018 - 15:10

I have a bachelors in Econ. I worked as a intern in Bremen after school as a data analytics intern then I was a data intern at ServiceNow a tech company and then a contractor at Google for a year doing content review.

After about a year at Google I quit to enroll in a coding bootcamp called Hack Reactor starting at the beginning of this year. Now since then I've been doing code alongs and grabbing some certs here and there, I've also decided I want to get AWS certification. From what I hear through various online communities and the people from my cohort, getting a job is very difficult. idk how else to say it, the take home projects are extensive and even if the candidate can meet the specs they more often then not don't get the offer.

I find this feedback very intimidating and often wonder if it was a smart idea to invest this heavily into a career that I may not even be able to get off the ground. I'm thinking of working with non-profits as a way of getting some experience and possibly doing some freelance work but I wanted to ask this sub what it knows and hopefully give me some words of encouragement. Thanks.

submitted by /u/Captain_Braveheart
[link] [comments]
Categories: Web Development

How to learn Javascript?

webdev: reddit for web developers - Sat, 06/23/2018 - 14:03

Hi

I'm a web developer and my main tech is PHP.

My JS is week. I can hack when necessary with it, using SO and the like. But I don't know JS per say.

How did you learn JS.

Any good courses?

submitted by /u/andremac96
[link] [comments]
Categories: Web Development

What are the benefits of using ES6 against ES5, is it just syntactic sugar or anything more?

webdev: reddit for web developers - Sat, 06/23/2018 - 13:18

I'm learning node on my ubuntu 16.04 laptop and my distro stable node version is v4.2.6 which doesn't support ES6. The official LTS version is v8.11, but I'd like to know why should I upgrade and which one is usually used on production servers? Is just ES6 enough of a reason to upgrade?

Alternatively, If I keep using babel.js or something to transpile from ES6 to ES5 (which I have to do for browser compatibility any way), will it make any difference whether I use node 4.x or 8.x?

submitted by /u/rms_returns
[link] [comments]
Categories: Web Development

Best option for an SSL cert to cover all of my WP multisite sites and domains on GoDaddy?

webdev: reddit for web developers - Sat, 06/23/2018 - 12:38

I have clients crawlin' up my anus about the cert apocalypse hitting Google next month. Aunt Bea's vacation photos need a secure encryption now.

submitted by /u/Agent0013
[link] [comments]
Categories: Web Development

Are you people on webdev going to respond in some way to the new EU copyright legislation in some way, and if so, how?

webdev: reddit for web developers - Sat, 06/23/2018 - 11:46

I am sorry if I am not the first person asking this, or if this is inappropriate for this sub, but I thought this was important. Tried to word the question as neutral as possible. I don't know about you, but my personal opinion is that the proposed legislation, especially article 13 with its proposed automatic copyright filters á lá ContentID could be devastating not only to users, but web-focused businesses as well, at least inside the EU. If anyone here owns large sites, are you going to black them out in protest before the vote that is likely to occur on July 4? Or if you happen to like the legislation proposal, would you add a cheerful banner to your site? The point is mainly that website owners do have a lot of power to influence the outcome of this situation. Would be nice to know what you think.

submitted by /u/SaddexProductions
[link] [comments]
Categories: Web Development

Question. How to add call to action to sticky header only. Joomla

webdev: reddit for web developers - Sat, 06/23/2018 - 11:23

Hi everyone how do I add a call to action button that say "call us now " on my joomla website, but only make it appear when the user scrolls down that is only appears on the sticky header and not on main header. This will require the other menu links to shrink in size. I have done this before on Wordpress. I appreciate every response. Thank you.

submitted by /u/Andreboy
[link] [comments]
Categories: Web Development

Pages