Web Development

Are there any solutions to marketing tags impacting pagespeed scores and load times?

webdev: reddit for web developers - Fri, 03/16/2018 - 19:51

I work for a creative agency that builds and manages quite a few websites for clients. When we build a site and hand it over to the client it sits at a pagespeed score of 99+. Invariably this goes down as clients use the site. The biggest offender and the one I haven't found a solution for are marketing tags. They tend to hurt every aspect of the pagespeed score and that is the most visible metric to the client.

The only improvements we've been able to make are to move everything that we can into Google Tag Manager and using async when it doesn't break things.

What solutions are there besides telling clients remove unnecessary tags?

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

What is your main source of getting clients?

webdev: reddit for web developers - Fri, 03/16/2018 - 19:17

I want to know the #1 source that you have for getting clients are. Whether it's SEO, Networking, starting a Blog, etc. I want to invest in some Marketing, but I need to invest in the ones that will provide me the best ROI and Leads. Thank you!!

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

Do I need to configure trusted_host_patterns if Drupal is behind a reverse proxy?

Drupal - Open Source Content Platform - Fri, 03/16/2018 - 19:16

Drupal 8 complains if you haven't configured the trusted_host_patterns in settings.php, as failing to do so can open the site up to HTTP Host header attacks. However, I cannot for the life of me figure out a way to set the trusted hosts so that I can actually use the site. I get this error:

The website encountered an unexpected error. Please try again later.

This is about all I've been able to find on Google searches related to the issue.

While the OP doesn't mention reverse proxies, one of the commenters is calling the warning Drupal displays for the trusted host configs "just a nuisance" for any installations behind a reverse proxy, and suggesting that we should be able to opt-out.

Is it safe to leave trusted host patterns disabled while behind a reverse proxy? Or is there some config step I'm just missing that will make them work?

submitted by /u/River_Tahm
[link] [comments]

How Do Web Dev Agencies Make Money?

webdev: reddit for web developers - Fri, 03/16/2018 - 18:19

Hey All.

I'm in the dark about the business side of Web Dev Agencies and was wondering if someone could educate me.

As I understand, Web Devs usually charge a one time fee for the website and the recurrening income is only through maintainence charges. This is the case atleast in the East, where I live.

How is this a stable business model and how do they actually make enough money to scale higher?


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

If you are in the USA, don't use foreign hosting company!

webdev: reddit for web developers - Fri, 03/16/2018 - 18:15

Just learned a hard lesson about Siteground. If a foreign web services company rips you off, you can't take them to small claims court like you could a US-based company. They are outside of US court jurisdiction. Siteground has no US office or personnel. No recourse and they know it. They stole money for a year of high-end service that was terminated, after tacking on addon services I didn't want. Only way I found out is they tried to auto-bill a credit card I cancelled. Refused to refund. A domestic firm I could address with arbitration. Not so with a Siteground, who is based in Belgium and lists its corporate office in Panama. Far as I can tell, most positive posts are made by their shills.

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

What are the best practices for creating a remote team environment for projects?

webdev: reddit for web developers - Fri, 03/16/2018 - 18:14

I may not have asked that correctly, so let me explain:

Let's say someone wants to start a new project but would like friends/co-workers/etc help with the project? ... or someone just has multiple machines and wants to localize all the project files? Essentially, I have multiple computers. I would like a way for live editing where if I make changes, it is instally reflected on the other machinces?

My current setup is just 3 computers. One is running WAMP (essentially the "server"), the other has all the editing tools, and the other is a desktop in my office where I would also just to edit and view the server as well.

Now, that setup works decently, but I would like to be more professional with it. I'm currently working on a project that I intend on bringing on another developer and I'm not keen to the idea of saying ...

"hey, here's the website IP to view the website, here's the Filezilla connection, here's what I want you to do, have fun."

Basically, I'm just wanting to replace Filezilla, and possibly WAMP, but I don't have any issues with WAMP.

What's the best way to set this up?

INB4 anyone makes fun of me, I'm an "old time hobby developer" and I'm not up-to-date on any of the new, fancy tools that are out there.

Here are the tools I currently use:

  • WAMP
  • VSCode (I like atom more, but don't mind using either)
  • GITHUB DESKTOP (which I'm not wanting to use for my Team Projects due to the fact you must pay to keep the code private(
  • Filezilla (to upload changes to the wamp server, not the best practice, I know, that's why I'm here)

I've Google'd around to see if there was a way just to share the project files and then let the person decide how they want to load and view them, but there's too many and I want your feedback.

Thanks in advance.

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

Did anyone here worked with OutSystems?

webdev: reddit for web developers - Fri, 03/16/2018 - 17:48

I've recently got a job offer as a developer on this platform and would like to know more from someone with more experience... It's one of many low-code platform with little to no information apart from their website's... what are your thoughts of it?

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

jQuery fill values of form fields depending on what is selected in dropdown

webdev: reddit for web developers - Fri, 03/16/2018 - 16:59

I can't find a straight answer to this, only similar but not what I want to do. So I have a form with a bunch of text fields and a select field at the top with several options.

I need to populate all the text fields with specific values depending on what is selected in the select menu. How is it done?

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

Animated text scroller. How can I improve this?

webdev: reddit for web developers - Fri, 03/16/2018 - 16:35


I just just threw this together with what I know. I'm just wondering if there are things I could use to make the whole thing a litter cleaner? Also for some reason in the codepen the first letter likes to pop in sometimes, but this isn't happening on my end sooo.. ¯\(ツ)

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

What are some of ways you handle token-auth in a React application?

webdev: reddit for web developers - Fri, 03/16/2018 - 16:33

I just wanted to get some different thoughts on this.

My understanding is that I'd have a user who once they login, the server (in my case, a rails server) would send back a token.

I store the token and other info needed by my backend (in something like localStorage) and set them as a default headers in something like Axios (or w/e you use to make API requests).

Each request would include the token and other info needed to authenticate the user on the backend.

If the user choses to stay logged in and navigates away from the site, when they come back, I'd have to check if their token is valid (which determines the state of the UI). Whenever a user lands on the client, I'd have to check if their stored token is valid or available (to determine the stored state.)

When a user logs out, I clear their info (in turn changing the UI).

Some questions I have are: How do you handle a situation where the token expires spontaneously?

How do I determine if they hit an unauthorized route vs. their token expired?

Please share your thoughts and approaches to doing auth in React and also point out ways in which I can improve mine... I know I could easily user Firebase of Auth0, but I am talking specifically about rolling out my own backend.


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

Development environment!

webdev: reddit for web developers - Fri, 03/16/2018 - 16:28

Hello guys! so recently i faced this really bad problem. I am currently learning php stack, and i want to use it with nginx and linux, but I really dont know if i can run linux on my pc because it is is really old one. It is AMD athlon 64 2x 5000+ processor with 2gb ram and gforce8600gt graphics card. Just my question here is that: can i install xubuntu with full features and use it for LEMP stack on that pc? or if i can not, what can i do for windows to do something similar to LEMP stack since literally almost every book about nginx requires linux installed! (and not only nginx, apache books also require linux most of the times)I know its silly question but i wanna hear answer from experienced web dev's..

EDIT: also one more question, will linux install network driver on its own or not?

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

Converting heavyweight java application to web

webdev: reddit for web developers - Fri, 03/16/2018 - 16:24

Hey all, new to this sub.

I have an extremely large (~2 million lines of code) application that my team and I have been working on for over 10 years. We are looking at switching over to web instead of our heavy java program. Are there any popular java frameworks that support large applications like this? I was looking at Apache Struts 2 this morning and it seems to meet our requirements but all of this is pretty new to me so I'm not sure what options are available/popular.

The main concern we have is that we have several data listener classes that would need to fire on small changes from focus listeners and the like. We also have around 500 users using our system at any given time so performance for a website is concerning. Also browser incompatibilities - are some frameworks less prone to these?

Any thoughts? Thank you!

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

Which real world projects are written with really good technical SEO and HTML markup in mind?

webdev: reddit for web developers - Fri, 03/16/2018 - 16:19

What websites would you recommend for studying which are built on really good technical SEO and markup usability principles like advanced and valid HTML semantics, structured Schema data, accessibility, class methodology structure etc.?

I don't mean websites which educate on these things (like developer.mozilla.org and such) but finished and successfull projects in use for general audience (websites built for various clients, companies, magazines or whatever) built by high level professionals with attention on details.

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

First time using GoDaddy with a MEAN Stack. Please HELP!

webdev: reddit for web developers - Fri, 03/16/2018 - 16:16

I have compiled everything with the webpack build. My DIST folder contains a public directory and a server directory. It is working 100% on Heroku, but I can't seem to make the backend Express server work. I placed the files from the public directory right into the root of my subdomain. The site renders and routes perfectly. I just can't seem to get the app.js to be recognized to spin up the server and have the REST API called and returned. I would like to know how to get the backend working.

I have scoured the interwebs and have had three calls to GoDaddy. I gave up after they told me TypeScript was a Microsoft language and wouldn't work on their servers? I tried explaining compiling, but I think it fell on deaf ears.

Edit: I guess I need to have my .env loaded as well? How do I manage to upload and use that while hidden?

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

How can I make this SVG scale like I want it to

webdev: reddit for web developers - Fri, 03/16/2018 - 15:48

Hello there, this is my first post on this sub, I've been mostly lurking so far.

I finally dared to start on a small, first project I was thinking about for a while after taking a few courses on full-stack developement and a little bit of design.

I made a small sketch on how I would my navigation to look.

The problem I'm facing is that I don't know how I would make the SVG Path that underlines the nav scale like I want it to (The little ECG thingy should move without being squished while the lines next to it get smaller, check the picture to see what I mean).

This is the SVG Code

Do you guys have any idea on how to approach this?

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

Does Anyone Else not like the hamburger icon (flyout menu) used in so many mobile-first designs?

webdev: reddit for web developers - Fri, 03/16/2018 - 15:41

Web apps that us a breakpoint to turn their nav into a flyout menu are so irritating. There is usually less options to select from and often the layout of the menu available from the hamburger icon is different from the navbar. I think that the change of layout is a poor design decision.

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